Why is writing a closed TCP socket worse than reading one?
+1 To Greg Hewgill for leading my thought process in the correct direction to find the answer. The real reason for SIGPIPE in both sockets and pipes is the filter idiom / pattern which applies to typical I/O in Unix systems. Starting with pipes. Filter programs like grep typically write to STDOUT and read from … Read more