Date: Friday, December 1, 2006 @ 15:47:31
Author: gilles
Path: /cvsroot/carob/carob/src
Modified: ControllerStateChangedCallback.cpp (1.2 -> 1.3)
Don't close() the socket in callback because it is not thread-safe
+ it will be done anyway when the main thread will clean-up the socket before
re-connecting to another controller
------------------------------------+
ControllerStateChangedCallback.cpp | 1 -
1 files changed, 1 deletion(-)
Index: carob/src/ControllerStateChangedCallback.cpp
diff -u carob/src/ControllerStateChangedCallback.cpp:1.2
carob/src/ControllerStateChangedCallback.cpp:1.3
--- carob/src/ControllerStateChangedCallback.cpp:1.2 Wed Nov 29 17:43:44 2006
+++ carob/src/ControllerStateChangedCallback.cpp Fri Dec 1 15:47:31 2006
@@ -77,7 +77,6 @@
socketIter != iter->second.end(); socketIter++)
{
shutdown(*socketIter, SHUT_RDWR);
- close(*socketIter);
}
iter->second.clear();
}
_______________________________________________
Carob-commits mailing list
[email protected]
https://forge.continuent.org/mailman/listinfo/carob-commits