On Thu, 2006-08-10 at 18:49 +0100, Frederic Soulier wrote:
> Here's the twist:
>    I experience this issue on 3 linux boxes
>       FC5 + Sun JDK 1.5.0_07 (also with _08 and JDK 6 b2)
>       CentOS 3.7 + Sun JDK 1.5.0_07
>       SUSE 9.1  + Sun JDK 1.5.0_07
> 
>    but it works fine on a Windows box...
>       Win XP Pro SP2 with Sun JDK 1.5.0_07

Ok the culprit is the SO_LINGER thing

SocketSessionConfig ssc = (SocketSessionConfig)ioSession.getConfig();
ssc.setSoLinger(2000);

As soon as comment out
   ssc.setSoLinger(2000); 
it all works.

Considering the lingering value is in seconds according to the
java.net.Socket doc I'm not surprised it stays blocked for a while :)
Although the behaviour is different on a Windows platform.

Note: we recreated the problem on a wired network by unplugging the
client while running some tests so nothing particular to running the
apps over a GPRS network.

-- 
Frederic Soulier <[EMAIL PROTECTED]>
OpenPGP key available on http://www.keyserver.net
1024D/BA6700ED   49A6 8E8E 4230 8D41 1ADE  B649 3203 1DD2 BA67 00ED

Reply via email to