Comment 12 for bug 405745

Revision history for this message
Robert Collins (lifeless) wrote : Re: [Bug 405745] Re: blackbox.test_check.ChrootedCheckTests.test_check_missing_branch hangs on AIX

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Vincent Ladeuil wrote:
> Weird.
>
> Did you notice a change in the behavior recently or is it the first time
> you try running selftest ?
>
> The traceback points at a socket.close() which run after a
> socket.shutdown(socket.SHUT_RDWR)....
>
> So I can hardly imagine another way to shut down the server and I can't imagine why that fails on AIX...
> but if that's the case, we'll have to turn that bug into a duplicate of #417053...

One possibility is that the client is still sending data -
http://httpd.apache.org/docs/1.3/misc/fin_wait_2.html#appendix

changing our server code to:
shutdown(WR)
while (content = read_bytes()):
    pass
shutdown(RD)
close()

may help.

- -Rob
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkqgTvAACgkQ42zgmrPGrq7P5ACgj8PtE6RvsoTO8Eu98hBu6sNo
L/MAn0kx85t5nNBEzhW5WaNLIBGnVsl9
=6oIp
-----END PGP SIGNATURE-----