
I tried to file a bug ticket against this but the GHC trac doesn't seem to be quite working, so... It may be a known issue, but Network.accept doesn't appear to return the right port number on my 64-bit Linux box: it returns the server port rather than the client port. The connection it returns seems to work fine. On my 32-bit machines it works fine. I've reproduced the problem with ghc-6.8.3 and ghc-6.10.1, and with network-2.2.0.1 and network-2.2.1.2 (I think; is hiding the older package sufficient to force use of the newer one?). Thanks much for any advice you might have. Bart Massey bart@cs.pdx.edu

On Wed, May 20, 2009 at 9:52 AM, Bart Massey
I tried to file a bug ticket against this but the GHC trac doesn't seem to be quite working, so...
Could you please try to file a bug at http://trac.haskell.org/network Please let me know if that doesn't work. Cheers, Johan

On Wed, May 20, 2009 at 1:56 AM, Johan Tibell
On Wed, May 20, 2009 at 9:52 AM, Bart Massey
wrote: I tried to file a bug ticket against this but the GHC trac doesn't seem to be quite working, so...
Could you please try to file a bug at http://trac.haskell.org/network
Also, when you file the bug, please include the distro and versions of the kernel and glibc that you're using. I bet that your 64-bit system is newer than your 32-bit system, and configures IPv6 sockets by default. (In other words, I think I can see the bug.)

On Wed, May 20, 2009 at 9:55 AM, Bryan O'Sullivan
On Wed, May 20, 2009 at 1:56 AM, Johan Tibell
wrote: On Wed, May 20, 2009 at 9:52 AM, Bart Massey
wrote: I tried to file a bug ticket against this but the GHC trac doesn't seem to be quite working, so...
Could you please try to file a bug at http://trac.haskell.org/network
Also, when you file the bug, please include the distro and versions of the kernel and glibc that you're using. I bet that your 64-bit system is newer than your 32-bit system, and configures IPv6 sockets by default. (In other words, I think I can see the bug.)
Actually, when filing the bug, just try the fix in darcs: darcs get http://code.haskell.org/network

bart:
I tried to file a bug ticket against this but the GHC trac doesn't seem to be quite working, so...
It may be a known issue, but Network.accept doesn't appear to return the right port number on my 64-bit Linux box: it returns the server port rather than the client port. The connection it returns seems to work fine. On my 32-bit machines it works fine. I've reproduced the problem with ghc-6.8.3 and ghc-6.10.1, and with network-2.2.0.1 and network-2.2.1.2 (I think; is hiding the older package sufficient to force use of the newer one?).
Thanks much for any advice you might have.
I'll just emphasise that it is vital to file the bug: such packages are in the Haskell Platform, so all have bug trackers associated. -- Don
participants (4)
-
Bart Massey
-
Bryan O'Sullivan
-
Don Stewart
-
Johan Tibell