Skip to content

Commit

Permalink
Attempt to fix broken sigpipe
Browse files Browse the repository at this point in the history
```
Thread 1 "rtorrent main" received signal SIGPIPE, Broken pipe.

0x00007ffff7b998a3 in torrent::SocketStream::write_stream (this=0x5556453e3590, buf=0x555649ee79b0, length=16384) at /root/build/rtorrent/libtorrent/src/net/socket_stream.h:94
```
  • Loading branch information
stickz committed Sep 28, 2024
1 parent 62ffcc1 commit f391442
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libtorrent/src/net/socket_stream.h
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ SocketStream::write_stream(const void* buf, uint32_t length) {
if (length == 0)
throw internal_error("Tried to write to buffer length 0.");

return ::send(m_fileDesc, buf, length, 0);
return ::send(m_fileDesc, buf, length, MSG_NOSIGNAL);
}

}
Expand Down

0 comments on commit f391442

Please sign in to comment.