rust-utp icon indicating copy to clipboard operation
rust-utp copied to clipboard

A µTP (Micro/uTorrent Transport Library) library implemented in Rust

Results 7 rust-utp issues
Sort by recently updated
recently updated
newest added

On Windows, the recv_from operation on the UDP socket may return the following errors, which are expected and should be ignored: - 10054 (WSAECONNRESET): Windows can send this error if...

This PR depends on the work from PR #14. This PR is **very** important for UDP hole punching, which is one of the main reasons to use uTP above TCP.

This commit adds a `set_read_timeout` function similar to Rust's `set_read_timeout`[1]. The differences compared to upstream are: - Operation always succeed. - It takes an i64 instead Duration. [1] https://doc.rust-lang.org/nightly/std/net/struct.UdpSocket.html#method.set_read_timeout

Currently rust-utp doesn't allow concurrent reads and writes to the same socket. This limits its usefulness in a production context. ## Ways to achieve concurrency 1. Synchronize socket state access/modification...

I am calling close() on a CloneableSocket but it does not appear to cause reads in the other side CloneableSocket to exit with an Err. This is because CloneableSocket's recv()...

Your earlier code doesn't retry a socket read receiving EINTR, plus I need connections to die if they are not live. I therefore added a loop of all reads with...