Network module problem

Simon Marlow simonmar@microsoft.com
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.
>=20
> The problem is that "accept" fails when the reverse DNS=20
> fails, with the
> following error:
>=20
> Fail: does not exist
> Action: getHostByAddr
> Reason: no such host entry
>=20
> 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).

Cheers,
	Simon