[
https://issues.apache.org/jira/browse/THRIFT-4671?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16696307#comment-16696307
]
lixiasong commented on THRIFT-4671:
-----------------------------------
1. fixed the function return result from INT32 coverts to UINT32 ;
2. fixed the condition in line 482 "ftype == T_STOP" will never be satisfied
when the client socket closed before sending data to server.
> c glib is unable to handle client close unexpectedly
> ----------------------------------------------------
>
> Key: THRIFT-4671
> URL: https://issues.apache.org/jira/browse/THRIFT-4671
> Project: Thrift
> Issue Type: Bug
> Components: C glib - Library
> Affects Versions: 0.11.0
> Environment: ubuntu 16.04
> thrift sever: c_glib
> thrift client: c_glib, go
> Reporter: lixiasong
> Priority: Major
> Labels: easyfix, ready-to-commit
> Original Estimate: 24h
> Remaining Estimate: 24h
>
> When using c_glib thrift server. Once a client connects to the server *but
> does nothing (didn't send data to server) when being connected*. If the
> client closed unexpectedly(such as being killed) at the moment, *the
> thrift-work thread for that client wont't be closed* and read the closed
> client sock fd in the server forever.
> *I*t has been fixed in my branch, and will be tested and committed later if
> it runs well.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)