Re: SCTP stream socket read(2) can block a process

2014-04-15 Thread Bernd Walter
On Wed, Apr 16, 2014 at 01:54:19AM +0200, Bernd Walter wrote: > When using SCTP in TCP like stream style. > socket(2) > connect(2) > write(2) request > read(2) answer > > When the other side disconnects the association (e.g. process restarted) > after the write and before read call the read never

SCTP stream socket read(2) can block a process

2014-04-15 Thread Bernd Walter
When using SCTP in TCP like stream style. socket(2) connect(2) write(2) request read(2) answer When the other side disconnects the association (e.g. process restarted) after the write and before read call the read never returns. With TCP stream sockets the read would return with an error instead.