note
zwon
<p>Try to add following two lines after <c>print "output #2\n";</c>:
<c>
sleep 5;
print "output #3\n";
</c>
and you will get your <c>SIGPIPE</c>.
<p><b>Update:</b><spoiler> So after you printed "output #1" you hit abort in browser, browser sent "FIN" to server, that means that it will not send any data to server, server considers connection open write only after that. Then you print "output #2", server sends it to browser as it thinks connection is still open for writing, no error here and no SIGPIPE. Client receives this "output #2" and replies with "RST" as it considers connection completely closed. After server got "RST" it realise that connection is closed, now if you try to write anything into socket, you will get SIGPIPE.</spoiler>
1001264
1001264