By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,842 Members | 2,186 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,842 IT Pros & Developers. It's quick & easy.

socket library problem under aix

P: n/a
hello *,

i have a problem with python 2.2.3 under aix 4.3.3 compiled with gcc
version 2.9-aix51-020209 (rpm package from ibm).

the following code works fine under all other systems:

import socket
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
s.bind(("", 7111))
while 1:
(c, addr) = s.accept()

the first connect against this miniserver works (even the connection is
closed again as expected from the code).

the second loop hangs at the accept call and never comes back. a
netstat -a command tells me that the program is still listening on that
port, but a telnet against the server brings a connection timeout.

i've tried the same code under different operating systems (win, linux,
openbsd) with different python versions and it works fine there.

does anyone know where the problem is?


Jul 18 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.