Client & server threads increased from 4 to 10

This commit is contained in:
Strahinja Val Markovic 2013-10-11 20:12:04 -07:00
parent f6432e1498
commit a04ae37ead
2 changed files with 4 additions and 3 deletions

View File

@ -28,7 +28,7 @@ from ycm import vimsupport
from ycm.server.responses import ServerError, UnknownExtraConf from ycm.server.responses import ServerError, UnknownExtraConf
HEADERS = {'content-type': 'application/json'} HEADERS = {'content-type': 'application/json'}
EXECUTOR = ThreadPoolExecutor( max_workers = 4 ) EXECUTOR = ThreadPoolExecutor( max_workers = 10 )
class BaseRequest( object ): class BaseRequest( object ):
def __init__( self ): def __init__( self ):

View File

@ -38,7 +38,8 @@ import json
import bottle import bottle
import argparse import argparse
import httplib import httplib
from bottle import run, request, response import waitress
from bottle import request, response
import server_state import server_state
from ycm import user_options_store from ycm import user_options_store
from ycm.server.responses import BuildExceptionResponse from ycm.server.responses import BuildExceptionResponse
@ -247,7 +248,7 @@ def Main():
level = numeric_level ) level = numeric_level )
LOGGER = logging.getLogger( __name__ ) LOGGER = logging.getLogger( __name__ )
run( app = app, host = args.host, port = args.port, server='waitress' ) waitress.serve( app, host = args.host, port = args.port, threads = 10 )
if __name__ == "__main__": if __name__ == "__main__":