switchbrew / libnx

Library for Switch Homebrew
https://switchbrew.github.io/libnx/
ISC License
1.27k stars 174 forks source link

Nonblocking sockets are not working #100

Closed jarulo closed 6 years ago

jarulo commented 6 years ago

Observed behavior: Using a non-blocking socket with connect to google.com:80 always returns -1.

Expected behavior: After a certain delay, it is expected that retrying the call to connect on the same sockfd would succeed.

yellows8 commented 6 years ago

What's errno?

WinterMute commented 6 years ago

Just checked this, errno is EINPROGRESS (or at least it will be with https://github.com/switchbrew/libnx/pull/118)