You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@thrift.apache.org by je...@apache.org on 2017/10/29 16:53:29 UTC

thrift git commit: THRIFT-4377: close socket after processing request Client: Haxe Patch: Oleksii Prudkyi

Repository: thrift
Updated Branches:
  refs/heads/master 619218cd7 -> ac11cf88f


THRIFT-4377: close socket after processing request
Client: Haxe
Patch: Oleksii Prudkyi <Ol...@gmail.com>

This closes #1407


Project: http://git-wip-us.apache.org/repos/asf/thrift/repo
Commit: http://git-wip-us.apache.org/repos/asf/thrift/commit/ac11cf88
Tree: http://git-wip-us.apache.org/repos/asf/thrift/tree/ac11cf88
Diff: http://git-wip-us.apache.org/repos/asf/thrift/diff/ac11cf88

Branch: refs/heads/master
Commit: ac11cf88f852789d699415ec0c2c0e26bfd71ec2
Parents: 619218c
Author: Oleksii Prudkyi <Ol...@gmail.com>
Authored: Sun Oct 29 18:01:14 2017 +0200
Committer: Jens Geyer <je...@apache.org>
Committed: Sun Oct 29 17:52:48 2017 +0100

----------------------------------------------------------------------
 lib/haxe/src/org/apache/thrift/server/TSimpleServer.hx | 5 +++++
 1 file changed, 5 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/thrift/blob/ac11cf88/lib/haxe/src/org/apache/thrift/server/TSimpleServer.hx
----------------------------------------------------------------------
diff --git a/lib/haxe/src/org/apache/thrift/server/TSimpleServer.hx b/lib/haxe/src/org/apache/thrift/server/TSimpleServer.hx
index c9856b4..655a629 100644
--- a/lib/haxe/src/org/apache/thrift/server/TSimpleServer.hx
+++ b/lib/haxe/src/org/apache/thrift/server/TSimpleServer.hx
@@ -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);