[ 
https://issues.apache.org/jira/browse/THRIFT-4668?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16695533#comment-16695533
 ] 

ASF GitHub Bot commented on THRIFT-4668:
----------------------------------------

lshgdut commented on a change in pull request #1631: THRIFT-4668: make socket 
backlog configurable for python
URL: https://github.com/apache/thrift/pull/1631#discussion_r235596635
 
 

 ##########
 File path: lib/py/src/transport/TSocket.py
 ##########
 @@ -159,6 +159,10 @@ def __init__(self, host=None, port=9090, 
unix_socket=None, socket_family=socket.
         self._unix_socket = unix_socket
         self._socket_family = socket_family
         self.handle = None
+        self._backlog = 128
+
+    def setBacklog(self, backlog):
 
 Review comment:
   Yeah, nothing works except `_backlog` changed. I should add some warning for 
it. Thank for your suggestions!

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


> make socket backlog configurable for python
> -------------------------------------------
>
>                 Key: THRIFT-4668
>                 URL: https://issues.apache.org/jira/browse/THRIFT-4668
>             Project: Thrift
>          Issue Type: Improvement
>          Components: Python - Library
>    Affects Versions: 0.11.0
>            Reporter: lsh
>            Priority: Minor
>              Labels: patch
>
> The backlog parameter of socket.listen was hard coded, so I can't customize 
> it in my code.
> Adding `setBacklog` to `TServerSocket` can resolve my problem. :)



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to