Skip to content

Commit

Permalink
Reduce threadpool size
Browse files Browse the repository at this point in the history
  • Loading branch information
ctiller committed May 22, 2015
1 parent e594779 commit 3a5390e
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/python/src/grpc/_adapter/_face_test_case.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@

_TIMEOUT = 3
_MAXIMUM_TIMEOUT = 90
_MAXIMUM_POOL_SIZE = 400
_MAXIMUM_POOL_SIZE = 4


class FaceTestCase(test_case.FaceTestCase, coverage.BlockingCoverage):
Expand Down
4 changes: 2 additions & 2 deletions src/python/src/grpc/_adapter/_links_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@ def _transform_metadata(unused_metadata):
class RoundTripTest(unittest.TestCase):

def setUp(self):
self.fore_link_pool = logging_pool.pool(80)
self.rear_link_pool = logging_pool.pool(80)
self.fore_link_pool = logging_pool.pool(8)
self.rear_link_pool = logging_pool.pool(8)

def tearDown(self):
self.rear_link_pool.shutdown(wait=True)
Expand Down
2 changes: 1 addition & 1 deletion src/python/src/grpc/_adapter/_lonely_rear_link_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
class LonelyRearLinkTest(unittest.TestCase):

def setUp(self):
self.pool = logging_pool.pool(80)
self.pool = logging_pool.pool(8)

def tearDown(self):
self.pool.shutdown(wait=True)
Expand Down
2 changes: 1 addition & 1 deletion src/python/src/grpc/framework/face/demonstration.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
from grpc.framework.face import implementations
from grpc.framework.foundation import logging_pool

_POOL_SIZE_LIMIT = 20
_POOL_SIZE_LIMIT = 5

_MAXIMUM_TIMEOUT = 90

Expand Down
2 changes: 1 addition & 1 deletion src/python/src/grpc/framework/face/testing/base_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
from grpc.framework.base import interfaces # pylint: disable=unused-import
from grpc.framework.foundation import logging_pool

_POOL_SIZE_LIMIT = 20
_POOL_SIZE_LIMIT = 5

_MAXIMUM_TIMEOUT = 90

Expand Down

0 comments on commit 3a5390e

Please sign in to comment.