Skip to content

Commit

Permalink
THRIFT-4377: close socket after processing request
Browse files Browse the repository at this point in the history
Client: Haxe
Patch: Oleksii Prudkyi <[email protected]>

This closes apache#1407
  • Loading branch information
oprudkyi authored and Jens-G committed Oct 29, 2017
1 parent 619218c commit ac11cf8
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/haxe/src/org/apache/thrift/server/TSimpleServer.hx
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,11 @@ class TSimpleServer extends TServer {
logDelegate(e); // Unexpected
}

if(client != null)
{
client.close();
}

// Fire deleteContext server event after client disconnects
if (serverEventHandler != null) {
serverEventHandler.deleteContext(connectionContext, inputProtocol, outputProtocol);
Expand Down

0 comments on commit ac11cf8

Please sign in to comment.