[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug classpath/24346] New: java.net.ServerSocket.accept does not returns
From: |
audriusa at bluewin dot ch |
Subject: |
[Bug classpath/24346] New: java.net.ServerSocket.accept does not returns when the socket is closed from another thread. |
Date: |
13 Oct 2005 09:01:07 -0000 |
java.net.ServerSocket.accept should suspend the current thread until the
request is received (this works ok) or the server socket is closed from another
thread (in this case SocketException must be thrown). This is documented in the
API and also both Sun's and IBM implementations work this way. GNU Classpath
socket ignores the invocation of .close(). Hence the service, if once started,
cannot be cancelled between the requests.
The bug is demonstrated with the comitted Mauve test (ReturnOnClose). It is
observed when running Classpath 0.18 under JamVM 1.3.3, while the IBM
implementation passes the test under the same OS installation.
--
Summary: java.net.ServerSocket.accept does not returns when the
socket is closed from another thread.
Product: classpath
Version: 0.18
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: classpath
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: audriusa at bluewin dot ch
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24346
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Bug classpath/24346] New: java.net.ServerSocket.accept does not returns when the socket is closed from another thread.,
audriusa at bluewin dot ch <=