BZ #51: Broken Pipe

Status fields:

creation_ts:2008-03-06 20:31
component:threads
version:0.98
rep_platform:arm
op_sys:Linux
bug_status:RESOLVED
resolution:FIXED
reporter:dudu@marvell.com
Using Classpath 0.92.

i run a client and a server. The server is listening on a server socket, the client is
launching multiple threads that are connecting to the server socket.
After such connection has been establlished, the server begins to write bytes into the
socket and the client is reading the bytes. After a random delay,
the client is closing the socket. Now, when the server is attempting to write into the
closed socket, it dies with the "broken pipe".

Comment #1 by mark@klomp.org on 2008-03-14 10:00:44

Do you have some example source code to reproduce this bug?

Comment #2 by twisti@complang.tuwien.ac.at on 2008-03-14 11:10:17

Yes, that would be good.  You should also try a recent GNU Classpath version, as the bug
may already be fixed.

Comment #3 by dudu@marvell.com on 2008-03-14 15:16:06

(In reply to comment #2)
> Yes, that would be good.  You should also try a recent GNU Classpath version,
> as the bug may already be fixed.
>

I fixed the bug, there were missing a registration for the signals pool.

in signal.c

sigaddset(&mask,SIGPIPE); was missing

Regards