[
https://issues.apache.org/jira/browse/THRIFT-3957?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15634023#comment-15634023
]
Claudius Heine commented on THRIFT-3957:
----------------------------------------
Patch 0001 is just for demonstration.
> TConnectedClient does not disconnect from clients when their timeout is
> reached.
> --------------------------------------------------------------------------------
>
> Key: THRIFT-3957
> URL: https://issues.apache.org/jira/browse/THRIFT-3957
> Project: Thrift
> Issue Type: Bug
> Components: C++ - Library
> Affects Versions: 0.9.3, 0.10.0
> Reporter: Claudius Heine
> Assignee: James E. King, III
> Attachments:
> 0001-cpp-TestServer-removed-while-loop-and-added-connecti.patch,
> 0002-cpp-server-TConnectedClient-Timeouts-are-disconnecti.patch
>
>
> When starting the TestServer with the first appended patch:
> {code}
> bin/TestServer --protocol=json --transport=http --server-type=thread-pool
> --port=9080
> {code}
> And connecting to it with this shell command:
> {code}
> wget --post-data='[' http://localhost:9080
> {code}
> The connection stays up for a long time. Making DOS attacks very easy,
> because at some point the server runs out of available client connections.
> The second appended patch fixes the issue in TConnectedClient.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)