commit | 1fd95692f38ffca6ae56c369997c7742c5bc0660 | [log] [tgz] |
---|---|---|
author | Martin Veith <veithm@apache.org> | Fri May 15 15:11:09 2015 +0000 |
committer | Martin Veith <veithm@apache.org> | Fri May 15 15:11:09 2015 +0000 |
tree | 9f1641c4609f908ac56c305f916760d51a6ca5d0 | |
parent | 3ba470389f9d20e5ce673a3d3bd50c79b23e52a9 [diff] |
Shutdown all connections on CONNECTION_SHUTDOWN signal In case the factory gets a connection shutdown signal, all connections are terminated. Change-Id: I7026487156db0a671d26e711b9087a6d13301622 git-svn-id: https://svn.apache.org/repos/asf/etch/trunk@1679595 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/binding-cpp/runtime/src/main/transport/EtchTcpTransportFactory.cpp b/binding-cpp/runtime/src/main/transport/EtchTcpTransportFactory.cpp index 15f3422..bfc703b 100644 --- a/binding-cpp/runtime/src/main/transport/EtchTcpTransportFactory.cpp +++ b/binding-cpp/runtime/src/main/transport/EtchTcpTransportFactory.cpp
@@ -187,6 +187,10 @@ return ETCH_OK; } + if (event->equals(&EtchTcpListener::CONNECTION_SHUTDOWN())) { + shutdownAllConnections(); + } + return mSession->sessionNotify(event); }