[CLEANUP] stream_sock: MSG_NOSIGNAL is only for send(), not recv()
We must not set this flag on recv(), it's not used, it's just for
send().
diff --git a/src/stream_sock.c b/src/stream_sock.c
index 5caac46..d84cd1a 100644
--- a/src/stream_sock.c
+++ b/src/stream_sock.c
@@ -321,18 +321,7 @@
/*
* 2. read the largest possible block
*/
- if (MSG_NOSIGNAL) {
- ret = recv(fd, b->r, max, MSG_NOSIGNAL);
- } else {
- int skerr;
- socklen_t lskerr = sizeof(skerr);
-
- ret = getsockopt(fd, SOL_SOCKET, SO_ERROR, &skerr, &lskerr);
- if (ret == -1 || skerr)
- ret = -1;
- else
- ret = recv(fd, b->r, max, 0);
- }
+ ret = recv(fd, b->r, max, 0);
if (ret > 0) {
b->r += ret;