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-184.108.40.206 and network-220.127.116.11. 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.