Socket inherits timeout from accept - is this right?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Edwin,

On Wed, 2006-05-03 at 16:34 +0200, Edwin Steiner wrote:
> I tracked down a problem where JOnAS on classpath/cacao dropped
> a database connection for no good reason. The cause was that the
> ServerSocket used for "accept" has a one-second timeout set, and
> the accepted Sockets inherit it.
> 
> This inheritance of options is documented for the accept(2)
> system call, but I don't think it is intended behaviour on
> the java.net.Socket level. I did not find any reference to
> that in the ServerSocket documentation.

Good catch. I fixed it in CVS (and on the 0.91 release branch).
And I added a Mauve test for this.

Thanks,

Mark
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://developer.classpath.org/pipermail/classpath/attachments/20060514/663905a4/attachment.pgp

[Index of Archives]     [Linux Kernel]     [Linux Cryptography]     [Fedora]     [Fedora Directory]     [Red Hat Development]

  Powered by Linux