471,348 Members | 1,469 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,348 software developers and data experts.

httplib hangs in read / strace says recvfrom()

Hi list,

I'm 99% sure httplib is sporadically hanging when I call read() on the
HTTPResponse object (r.status == 200).

Evidence:
straceing the process shows it's blocked in recvfrom()
ls -la /proc/pid/fd shows the socket-id for recvfrom() file
descriptor (3)
lsof -n | grep socket-id shows the connection to the HTTP server (on
localhost:8080)
tcpdump -s 10000 -XXX -i lo port 8080 shows a response IS coming
over the wire

This seems to be a common problem (according to the internets) but
I haven't seen a resolution or explanation posted.

I've tried httplib.py from Python 2.3 and also dropped in the one from
Python 2.5 with no difference. Running on Linux kernel 2.6 (CentOS's,
specifically).

Any responses CC me as I'm not subscribed [since Python has worked so
flawlessly for me otherwise <g>]

--
Michael Bacarella <mb**@gpshopper.com>
Director of Technology

1-212-488-2222 (office)
1-646-641-8662 (mobile)

http://gpshopper.com/
http://slifter.com/

GPSHOPPER, LLC
307 Seventh Avenue
Suite 2104
New York, NY 10001

Sep 14 '07 #1
0 1080

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by hitectahir | last post: by
3 posts views Thread by Rich | last post: by
1 post views Thread by Brian Beck | last post: by
reply views Thread by Robert | last post: by
reply views Thread by philip20060308 | last post: by
1 post views Thread by Mitch.Garnaat | last post: by
1 post views Thread by Jack | last post: by
4 posts views Thread by Patrick Altman | last post: by
3 posts views Thread by rhXX | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.