gamedig / rust-gamedig

Game Server Query Library.
https://crates.io/crates/gamedig
MIT License
36 stars 10 forks source link

protocols: Add connect timeout to TimeoutSettings #158

Closed Douile closed 7 months ago

Douile commented 7 months ago

Because TcpSocket connects in Socket::new TimeoutSettings are now required for Socket::new. Since we already have TimeoutSettings there Sockets are now expected to apply timeout settings in Socket::new.

This fixes hanging when TCP cannot make a connection.