Network module problem

Simon Marlow
Tue, 4 Mar 2003 16:37:08 -0000

> Hello.  I'm running into a problem with the Network module,=20
> 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=20
> 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=20
> the hostname of
> the client, and would be happy to just substitute its IP=20
> 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).