bob
bob copied to clipboard
Ensure that `bob.com` works on NetBSD and OpenBSD
Currently, the connect()
function is special for FreeBSD & Windows. I suspect that NetBSD and OpenBSD have the same behavior than FreeBSD and, in this situation, we should merge the FreeBSD's behavior with these platforms. Another issue is about the failure which is not correctly handled by FreeBSD, see:
https://github.com/dinosaure/bob/blob/a03c2278a9662c942168c7e04a5f3db511c91241/lib/fiber.ml#L352-L360
The implementation changed now but the issue can exist again. Currently, we filter the special case when we use Linux
. Otherwise, in the case where we run into a Mac or a FreeBSD, we do a non-blocking connect()
- we probably do the same for NetBSD and OpenBSD but we need a confirmation,