*** GIOPConnection.java.orig Thu Oct 26 13:48:27 2006 --- GIOPConnection.java Thu Oct 26 14:00:41 2006 *************** *** 989,994 **** --- 989,998 ---- { logger.error( "GIOP connection closed due to errors during sendMessage"); } + //release write lock to prevent dead locks to + //reader thread which might try to close this socket too + //concurrently (unfortunately write lock is requested during streamClosed()) + releaseWriteLock(); //close transport connection, there is nearly no chance to sync with //peer on this connection again close();