On Sep 15, 5:51 pm, "jipalaciosort...@gmail.com" <jipalaciosort...@gmail.com> wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > El 15/09/2010 20:58, Grant Edwards escribió: > > > > > On 2010-09-15, cerr <ron.egg...@gmail.com> wrote: > > >> I get a socket error "[Errno 98] Address already in use" when i > >> try to open a socket that got closed before with close(). How > >> come close() doesn't close the socket properly? My socket code : > > >> s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) > >> s.bind((host, port)) s.listen(1) ... ... ... while loop: conn, > >> addr = s.accept() while conn and loop: ... ... ... conn.close() > > > At what line does the error occur? > > > To what does the phrase "open a socket" refer? > > > Have you tried the usual solution of setting the SO_REUSEADDR > > option on the socket before calling bind? > > >http://www.google.com/search?q=socket+%27address+already+in+use%27 > > Maybe, you have any other proccess in your system using your listen > port, for example apache...
Nope negative, I have one process on my system only that occupies port 1514. > > - -- > _ _ _ _ _ _ _ _ _ _ _ > Jose Ignacio Palacios Ortega /_ _/ / / / _ / / _ / > Telf: +34 637 058 813 / / / / / /_ / / / / / / > Correo-e: jipalaciosort...@gmail.com _ / / / / / _ _ _/ / / / / > Msn: jipalaciosort...@gmail.com / /_ / / / / / / / /_/ / > ID firma PGP: 0x0EB87E48 \ _ _ / /_/ /_/ /_ _ _/ > Huella PGP:61CC 5DA0 827B C3AB F83C 2A55 78AF B317 0EB8 7E48 > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.10 (MingW32) > Comment: Using GnuPG with Mozilla -http://enigmail.mozdev.org/ > > iEYEARECAAYFAkyRafgACgkQeK+zFw64fkjH2wCffe4v8ho2z4d8LWaPaiJRu0OZ > 4cgAniOoR70hu7UylkpgAr3JI5hxNXYP > =MoYK > -----END PGP SIGNATURE----- -- http://mail.python.org/mailman/listinfo/python-list