[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug classpath/27459] New: Socket inherits timeout setting from ServerSo
From: |
edwin dot steiner at gmx dot net |
Subject: |
[Bug classpath/27459] New: Socket inherits timeout setting from ServerSocket.accept |
Date: |
6 May 2006 17:28:12 -0000 |
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.
The database in question was HSQLDB 1.8.0. An additional
socket.setSoTimeout(0)
on the accepted socket solved the problem, but I dont think that
is required of Java apps, or is it?
--
Summary: Socket inherits timeout setting from ServerSocket.accept
Product: classpath
Version: unspecified
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: classpath
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: edwin dot steiner at gmx dot net
GCC build triplet: i686-pc-linux-gnu
GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27459
- [Bug classpath/27459] New: Socket inherits timeout setting from ServerSocket.accept,
edwin dot steiner at gmx dot net <=
- [Bug classpath/27459] Socket inherits timeout setting from ServerSocket.accept, edwin dot steiner at gmx dot net, 2006/05/06
- [Bug classpath/27459] Socket inherits timeout setting from ServerSocket.accept, cvs-commit at developer dot classpath dot org, 2006/05/14
- [Bug classpath/27459] Socket inherits timeout setting from ServerSocket.accept, cvs-commit at developer dot classpath dot org, 2006/05/14
- [Bug classpath/27459] Socket inherits timeout setting from ServerSocket.accept, mark at gcc dot gnu dot org, 2006/05/14
- [Bug classpath/27459] Socket inherits timeout setting from ServerSocket.accept, cvs-commit at developer dot classpath dot org, 2006/05/15