Ticket #13 (closed defect: fixed)
network accept returns server port number rather than client in some environments
|Reported by:||Bart Massey <bart@…>||Owned by:|
I have a number of machines running Debian Linux. Most of them are running it in 32-bit mode. I also have a work machine that is an AMD64.
On the AMD64 machine, Network.accept returns the server port number rather than the client port number. This seems to be true with ghc-6.8.3 and ghc-6.10.1, and with network-18.104.22.168 and network-22.214.171.124. It does not seem to happen on my 32-bit machines.
Even when the wrong port number is returned, the handle seems to be perfectly good.
Reproduce by running the attached test code and then telnetting to it.