diff --git a/ext/native/base/buffer.cpp b/ext/native/base/buffer.cpp index 1c9aff81ee..910a19bd7c 100644 --- a/ext/native/base/buffer.cpp +++ b/ext/native/base/buffer.cpp @@ -143,7 +143,7 @@ bool Buffer::FlushToFile(const char *filename) { bool Buffer::FlushSocket(uintptr_t sock) { for (size_t pos = 0, end = data_.size(); pos < end; ) { - int sent = send(sock, &data_[pos], (int)(end - pos), 0); + int sent = send(sock, &data_[pos], (int)(end - pos), MSG_NOSIGNAL); if (sent < 0) { ELOG("FlushSocket failed"); return false;