Skip to content

Commit

Permalink
Be less stupid with noita<->proxy socket options, should fix that con…
Browse files Browse the repository at this point in the history
…nection error.
  • Loading branch information
IntQuant committed Jan 22, 2025
1 parent 4e36ddc commit 5816739
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions shared/src/message_socket.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,7 @@ pub struct MessageSocket<Inbound, Outbound> {

impl<Inbound: DecodeOwned + Send + 'static, Outbound: Encode> MessageSocket<Inbound, Outbound> {
pub fn new(socket: TcpStream) -> eyre::Result<Self> {
socket.set_nodelay(true)?;
socket.set_write_timeout(Some(Duration::from_secs(3)))?;
socket.set_write_timeout(Some(Duration::from_secs(10)))?;
let (sender, recv_messages) = mpsc::channel();
let reader_thread = Some(thread::spawn({
let socket = socket.try_clone()?;
Expand Down

0 comments on commit 5816739

Please sign in to comment.