[Beepcore-java-users] PiggyBacked data, MessageListener and RequestHandler (simple fix)
Status: Beta
Brought to you by:
huston
|
From: Wladimir A. <wa...@ju...> - 2004-02-11 15:33:31
|
Hi,
Since I did not hear from anybody in this respect, I'm adding this =
simple fix. The piggybacked stuff remains there and the TCPSession is =
recreated afterwards. This only works if =
StartChannelListener.startChannel() calls channel.setStartData() to send =
back a piggybacked reply, otherwise the session will die if the new =
channel does not reply to the piggybacked message. The patch is below.
Cheers,
--- SessionImpl.java.new Wed Feb 11 10:21:28 2004
+++ SessionImpl.java.old Wed Feb 11 10:24:09 2004
@@ -1321,7 +1321,7 @@
=20
fireChannelStarted(ch);
=20
- if (ch.getState() !=3D ChannelImpl.STATE_TUNING) {
+ if (p.data =3D=3D null && ch.getState() !=3D =
ChannelImpl.STATE_TUNING) {
this.enableIO();
}
}
Wladimir de Lara Araujo Filho
Juniper Networks, Inc.
|