On 8/11/06, Frederic Soulier <[EMAIL PROTECTED]> wrote:
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

You mean to say that the problem is occuring when you run with JDK 6 b2 as well?

>    but it works fine on a Windows box...
>       Win XP Pro SP2 with Sun JDK 1.5.0_07

We are also experiencing the same :) The problem is not occuring on
windows machines, but only on Linux machines.  I was just about to
post that when I saw you had already figured it out :)

Just about to try with JDK 6 b2, and wanted to check if you were
having the same problem with that as well.

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.

We're not using SO_LINGER anyways.  So it seems like my problem is
connected with something else.

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



Regards,
Vinod.

Reply via email to