etch-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vei...@apache.org
Subject svn commit: r1679595 - /etch/trunk/binding-cpp/runtime/src/main/transport/EtchTcpTransportFactory.cpp
Date Fri, 15 May 2015 15:11:09 GMT
Author: veithm
Date: Fri May 15 15:11:09 2015
New Revision: 1679595

URL: http://svn.apache.org/r1679595
Log:
Shutdown all connections on CONNECTION_SHUTDOWN signal

In case the factory gets a connection shutdown signal, all connections
are terminated.

Change-Id: I7026487156db0a671d26e711b9087a6d13301622

Modified:
    etch/trunk/binding-cpp/runtime/src/main/transport/EtchTcpTransportFactory.cpp

Modified: etch/trunk/binding-cpp/runtime/src/main/transport/EtchTcpTransportFactory.cpp
URL: http://svn.apache.org/viewvc/etch/trunk/binding-cpp/runtime/src/main/transport/EtchTcpTransportFactory.cpp?rev=1679595&r1=1679594&r2=1679595&view=diff
==============================================================================
--- etch/trunk/binding-cpp/runtime/src/main/transport/EtchTcpTransportFactory.cpp (original)
+++ etch/trunk/binding-cpp/runtime/src/main/transport/EtchTcpTransportFactory.cpp Fri May
15 15:11:09 2015
@@ -187,6 +187,10 @@ status_t EtchTcpTransportFactory::MySess
     return ETCH_OK;
   }
 
+  if (event->equals(&EtchTcpListener::CONNECTION_SHUTDOWN())) {
+      shutdownAllConnections();
+  }
+
   return mSession->sessionNotify(event);
 
 }



Mime
View raw message