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

Jens Geyer edited comment on THRIFT-2696 at 9/16/14 9:09 PM:
-------------------------------------------------------------

{quote}
I do not force you to do anything about this problem. I have fixed it for 
myself using correct Select() and PeekBuf() calls.
{quote}

I will happily review any patch.

{quote}
but Delphi's TCustomIpClient.Select process 0 (using method ErrorCheck) as 
socket error and returns False.
{quote}

-ErrorCheck tests against SOCKET_ERROR, which is defined as -1. Could this be 
an version issue? I run XE here- I now see what you mean. It is not the error 
check, but what happens afterwards. 

-Do you have a minute to talk on freenode IRC?-




was (Author: jensg):
{quote}
I do not force you to do anything about this problem. I have fixed it for 
myself using correct Select() and PeekBuf() calls.
{quote}

I will happily review any patch.

{quote}
but Delphi's TCustomIpClient.Select process 0 (using method ErrorCheck) as 
socket error and returns False.
{quote}

ErrorCheck tests against SOCKET_ERROR, which is defined as -1. Could this be an 
version issue? I run XE here. 

Do you have a minute to talk on freenode IRC?



> 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)

Reply via email to