-
Notifications
You must be signed in to change notification settings - Fork 48
connectTo hangs forever #14
Comments
$ strace ./test |
very likely you're trying to connect to the wrong port 20480 instead of the port 80. Sadly the network package is terrible, and PortNumber's "content" is supposed to be in network endianness instead of host endianness. Instead of using 'PortNumber' you should use 'fromIntegral' which will transform the port you want to network endianness. I'm not sure why you don't get a connection refused or timeout eventually, but this has probably something to do with the network package itself, not connection. |
Indeed, sorry for the noise |
Hi,
when using connectTo in a simple test application like the following, it hangs forever. Running with strace shows that something weird is going on with polling. In a bigger application of mine it all works though, so it's probably a race condition somewhere or something else is needed? This reliably always fails on two different Linux systems here.
The text was updated successfully, but these errors were encountered: