public inbox for java-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug libgcj/14759] New: ServerSocketChannel causes Selector.select() to return immediatly
@ 2004-03-28 10:11 debian-gcc at lists dot debian dot org
2004-03-28 10:12 ` [Bug libgcj/14759] " debian-gcc at lists dot debian dot org
` (4 more replies)
0 siblings, 5 replies; 6+ messages in thread
From: debian-gcc at lists dot debian dot org @ 2004-03-28 10:11 UTC (permalink / raw)
To: java-prs
[forwarded from http://bugs.debian.org/240550]
If a ServerSocketChannel has been registered for SelectionKey.OP_ACCEPT
at a Selector, select() will return immediatly with OP_ACCEPT on that
Channel, even when there is no connection waiting.
See example attached.
Compile and run it with:
gcj-3.3 --main=Server Server.java && ./a.out
and it will output:
Before selector
Something was selected.
Before accept.
and hang in the ServerSocket.accept() method until a connection
happens.
Using gcj-3.4 (20040314):
Before selector [waiting]
Something was selected.
Before accept.
java.nio.channels.IllegalBlockingModeException
at java.net.ServerSocket.implAccept(java.net.Socket)
(/usr/lib/gcc-snapshot/lib/libgcj.so.5.0.0)
at gnu.java.nio.NIOServerSocket.accept()
(/usr/lib/gcc-snapshot/lib/libgcj.so.5.0.0)
at Server.main(java.lang.String[]) (Unknown Source)
--
Summary: ServerSocketChannel causes Selector.select() to return
immediatly
Product: gcc
Version: 3.3.4
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: libgcj
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: debian-gcc at lists dot debian dot org
CC: gcc-bugs at gcc dot gnu dot org,java-prs at gcc dot gnu
dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14759
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug libgcj/14759] ServerSocketChannel causes Selector.select() to return immediatly
2004-03-28 10:11 [Bug libgcj/14759] New: ServerSocketChannel causes Selector.select() to return immediatly debian-gcc at lists dot debian dot org
@ 2004-03-28 10:12 ` debian-gcc at lists dot debian dot org
2004-03-30 5:59 ` bofh-reg-gcc at diegeekdie dot com
` (3 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: debian-gcc at lists dot debian dot org @ 2004-03-28 10:12 UTC (permalink / raw)
To: java-prs
------- Additional Comments From debian-gcc at lists dot debian dot org 2004-03-28 10:12 -------
Created an attachment (id=6007)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=6007&action=view)
example
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14759
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug libgcj/14759] ServerSocketChannel causes Selector.select() to return immediatly
2004-03-28 10:11 [Bug libgcj/14759] New: ServerSocketChannel causes Selector.select() to return immediatly debian-gcc at lists dot debian dot org
2004-03-28 10:12 ` [Bug libgcj/14759] " debian-gcc at lists dot debian dot org
@ 2004-03-30 5:59 ` bofh-reg-gcc at diegeekdie dot com
2004-04-04 6:18 ` pinskia at gcc dot gnu dot org
` (2 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: bofh-reg-gcc at diegeekdie dot com @ 2004-03-30 5:59 UTC (permalink / raw)
To: java-prs
------- Additional Comments From bofh-reg-gcc at diegeekdie dot com 2004-03-30 05:59 -------
Running the program with strace shows that two sockets are created (fd 5 and 6). The second socket (fd 6) is the one that is later given an address with bind(2), the first socket (fd 5) is the one that is used in the select(2) call.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14759
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug libgcj/14759] ServerSocketChannel causes Selector.select() to return immediatly
2004-03-28 10:11 [Bug libgcj/14759] New: ServerSocketChannel causes Selector.select() to return immediatly debian-gcc at lists dot debian dot org
2004-03-28 10:12 ` [Bug libgcj/14759] " debian-gcc at lists dot debian dot org
2004-03-30 5:59 ` bofh-reg-gcc at diegeekdie dot com
@ 2004-04-04 6:18 ` pinskia at gcc dot gnu dot org
2004-04-04 6:22 ` pinskia at gcc dot gnu dot org
2005-01-15 22:30 ` konqueror at gmx dot de
4 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-04-04 6:18 UTC (permalink / raw)
To: java-prs
--
What |Removed |Added
----------------------------------------------------------------------------
Attachment #6007|text/x-java |text/plain
mime type| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14759
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug libgcj/14759] ServerSocketChannel causes Selector.select() to return immediatly
2004-03-28 10:11 [Bug libgcj/14759] New: ServerSocketChannel causes Selector.select() to return immediatly debian-gcc at lists dot debian dot org
` (2 preceding siblings ...)
2004-04-04 6:18 ` pinskia at gcc dot gnu dot org
@ 2004-04-04 6:22 ` pinskia at gcc dot gnu dot org
2005-01-15 22:30 ` konqueror at gmx dot de
4 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-04-04 6:22 UTC (permalink / raw)
To: java-prs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-04-04 06:21 -------
Confirmed.
--
What |Removed |Added
----------------------------------------------------------------------------
Severity|normal |minor
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
Last reconfirmed|0000-00-00 00:00:00 |2004-04-04 06:21:59
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14759
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug libgcj/14759] ServerSocketChannel causes Selector.select() to return immediatly
2004-03-28 10:11 [Bug libgcj/14759] New: ServerSocketChannel causes Selector.select() to return immediatly debian-gcc at lists dot debian dot org
` (3 preceding siblings ...)
2004-04-04 6:22 ` pinskia at gcc dot gnu dot org
@ 2005-01-15 22:30 ` konqueror at gmx dot de
4 siblings, 0 replies; 6+ messages in thread
From: konqueror at gmx dot de @ 2005-01-15 22:30 UTC (permalink / raw)
To: java-prs
------- Additional Comments From konqueror at gmx dot de 2005-01-15 22:30 -------
I'm working on it.
--
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |konqueror at gmx dot de
|dot org |
Status|NEW |ASSIGNED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14759
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2005-01-15 22:30 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-03-28 10:11 [Bug libgcj/14759] New: ServerSocketChannel causes Selector.select() to return immediatly debian-gcc at lists dot debian dot org
2004-03-28 10:12 ` [Bug libgcj/14759] " debian-gcc at lists dot debian dot org
2004-03-30 5:59 ` bofh-reg-gcc at diegeekdie dot com
2004-04-04 6:18 ` pinskia at gcc dot gnu dot org
2004-04-04 6:22 ` pinskia at gcc dot gnu dot org
2005-01-15 22:30 ` konqueror at gmx dot de
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).