[ https://issues.apache.org/jira/browse/THRIFT-2696?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14136027#comment-14136027 ]
Severian Duchenko commented on THRIFT-2696: ------------------------------------------- I know about count>101. Code in attachment just example of correct check for Select(...) = 0. To reproduce bug u should use small timeout values while invoking Select() method. I catch it with timeout 200ms every time i run server. With default timeout (5000) i have cached this only few times. Steps to reproduce: 1. Configure server with small client timeout (200ms). Start it. 2. Connect with client. Execute some command. 3. Connection terminates in few seconds by server. > Unable to stop socket server while there are idle clients > --------------------------------------------------------- > > Key: THRIFT-2696 > URL: https://issues.apache.org/jira/browse/THRIFT-2696 > Project: Thrift > Issue Type: Bug > Components: Delphi - Library > Affects Versions: 0.9 > Reporter: Severian Duchenko > Assignee: Jens Geyer > Attachments: > THRIFT-2696-Unable-to-stop-socket-server-while-there.patch, > THRIFT-2696-Unable-to-stop-socket-server-while-there_v2.patch, > code_exmple.txt, patch.txt > > > When TSimpleServer created using TServerSocketImpl and there are idle clients > (connected, but not sending anything), it is impossible to stop server. > After executing TSimpleServer.stop server will not stop until client is > disconnected or does not send anything. -- This message was sent by Atlassian JIRA (v6.3.4#6332)