
Hello. I'm running into a problem with the Network module, which I suspect is pretty easy to fix, but am not sure how to best do so.
The problem is that "accept" fails when the reverse DNS fails, with the following error:
Fail: does not exist Action: getHostByAddr Reason: no such host entry
I'm not sure how to get around this. I don't actually need the hostname of the client, and would be happy to just substitute its IP address in that field, but I'm not sure how to do that.
We've made this change in the library, the next release of GHC will include the fix. Unfortunately there's no immediate workaround, other than using the Network.Socket interface to accept (which isn't hard, the Network.accept wrapper is fairly simple). Cheers, Simon
participants (1)
-
Simon Marlow