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

James E. King, III commented on THRIFT-4223:
--------------------------------------------

Once we listen(), connection requests will queue up until accept() is called so 
I do not see a race in that area.
Here's a page that describes it in gross detail:
http://veithen.github.io/2014/01/01/how-tcp-backlog-works-in-linux.html

> Add support to the isServing() method for the C++ library
> ---------------------------------------------------------
>
>                 Key: THRIFT-4223
>                 URL: https://issues.apache.org/jira/browse/THRIFT-4223
>             Project: Thrift
>          Issue Type: Improvement
>          Components: C++ - Library
>    Affects Versions: 0.10.0
>         Environment: Linux
>            Reporter: Erick Arroyo
>            Assignee: James E. King, III
>             Fix For: 0.11.0
>
>   Original Estimate: 8h
>  Remaining Estimate: 8h
>
> It is important to add support to the isServing() method for the C++ library 
> and in the other supported languages. This method is already exposed on the 
> Java library. 
> This method is very useful to determine when exactly the server is in 
> listening state and also can be used to fix for example race conditions 
> between the server and the client.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Reply via email to