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

xiaokang commented on THRIFT-1653:
----------------------------------

the reason about creating this bug maybe is in 
lib/cpp/src/thrift/transport/TBufferTransports.h line 230~231. If flush throw a 
exception, then transport have no chance to close, so the socket don't do the 
close, that is make CLOSE_WAIT sockets

> TThreadedSelectorServer leaks CLOSE_WAIT sockets 
> -------------------------------------------------
>
>                 Key: THRIFT-1653
>                 URL: https://issues.apache.org/jira/browse/THRIFT-1653
>             Project: Thrift
>          Issue Type: Bug
>            Reporter: Mikhail Bautin
>            Assignee: Jake Farrell
>             Fix For: 0.9
>
>
> We are using TThreadedSelectorServer in HBase regionserver. We are observing 
> that under high load thousands of sockets in the CLOSE_WAIT state are not 
> being cleaned up, leading to server crash. Is it possible that the sockets 
> are not being closed on the server side, or the process of closing sockets 
> closed by client is being starved on the server, because normal I/O takes 
> priority?



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to