summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/src/transport.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/src/transport.c b/src/src/transport.c
index 073c4ad65..f24b7794b 100644
--- a/src/src/transport.c
+++ b/src/src/transport.c
@@ -263,7 +263,8 @@ for (i = 0; i < 100; i++)
tls_out.active == fd ? tls_write(FALSE, block, len, more) :
#endif
#ifdef MSG_MORE
- more ? send(fd, block, len, MSG_MORE) :
+ more && !(tctx->options & topt_not_socket)
+ ? send(fd, block, len, MSG_MORE) :
#endif
write(fd, block, len);