[5893] in java-interest
Re: socket write problem (write blocks forever)
daemon@ATHENA.MIT.EDU (Jim Graham)
Sun Mar 3 23:53:03 1996
Date: Sun, 3 Mar 1996 19:18:05 -0800
From: flar@bendenweyr.Eng.Sun.COM (Jim Graham)
To: java-interest@java.Eng.Sun.COM
> I have got a problem in sending a large amount of data over a socket. I
> think the problem arises when the write method has to block. The write
> method then blocks forever and does not return. Is this some known
> bug?
Solaris 2.4 has a kernel bug where they fail to deliver a SIGPOLL event
when output buffer space is available. Upgrade to 2.5 or install the
kernel patch, see:
http://java.sun.com/JDK-1.0/knownbugs.html#IO
If this is in an applet, then waving the mouse should cause an X event
to be delivered to the Java runtime which should cause it to receive
a SIGPOLL and wake up and notice your write can continue. (i.e. any
other IO event will cause the write to unblock).
...jim
-
This message was sent to the java-interest mailing list
Info: send 'help' to java-interest-request@java.sun.com