thrift-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (THRIFT-4668) make socket backlog configurable for python
Date Wed, 21 Nov 2018 16:50:00 GMT

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

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

jeking3 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_r235465457
 
 

 ##########
 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:
   What happens when you call this when it is already listening?

----------------------------------------------------------------
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:
users@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)

Mime
View raw message