Client & server threads increased from 4 to 10
This commit is contained in:
parent
f6432e1498
commit
a04ae37ead
@ -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 ):
|
||||||
|
@ -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__":
|
||||||
|
Loading…
Reference in New Issue
Block a user