Home

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 <mbac@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

previous
next

Re: I am afraid
Re: accessing parts of large files with File.seek()
Re: doctest and decorators
Re: Howto identify a string value vs. a numeric value in std::string
Re: Question about embedding python in C++
Dzieci Niczyje
Fundacja Iskierka
Rodzic Po Ludzku
Pajacyk
Fundacja Hobbit