PiggyBacked data, MessageListener and RequestHandler (simple fix)
"Wladimir Araujo" <[email protected]> Wed, 11 Feb 2004 10:32:45 -0500
| Newsgroups | gmane.network.beep.beepcore.java.general |
|---|---|
| Message-ID | <[email protected]> |
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.
-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click