Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use the correct
cvt
for converting socket errors on Windows.
`WSADuplicateSocketW` returns 0 on success, which differs from handle-oriented functions which return 0 on error. Use `sys::net::cvt` to handle its return value, which handles the socket convention of returning 0 on success, rather than `sys::cvt`, which handles the handle-oriented convention of returning 0 on failure.
- Loading branch information