#3246: network accept returns server port number rather than client in some
environments
------------------------+---------------------------------------------------
Reporter:  Bart Massey  |          Owner:                   
    Type:  bug          |         Status:  new              
Priority:  normal       |      Component:  libraries (other)
 Version:  6.10.2       |       Severity:  normal           
Keywords:               |       Testcase:                   
      Os:  Linux        |   Architecture:  Unknown/Multiple 
------------------------+---------------------------------------------------
 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-2.2.0.1 and network-2.2.1.2.  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.

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/3246>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

Reply via email to