471,337 Members | 1,071 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

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

httplib.HTTPSConnection with timeout support (pyton 2.5.1)

Hi,

I am using a HTTPS connection to invoke a cgi-script. I want to use a
timeout between the sending the request and receiving the response, so
what I want to do is when the request is send, the client should wait
for a specified time, drop the connection and then do some thing
else.

I found out that the timout should work on HTTPS connection (python
2.5), and thus tried to use it, but that does not seems to work. The
cgi-script receives the request, do some work, and returns the
response, but not within the "timelimit" the client wants, and the
timeout set for the HTTPS conncetion does not apply at all. Could be
becasue the timeout is only used on the (TCP/IP) connection and not
the request/response communication?

Is there a way to use timeout as the way I want to (between sending
the request and receiving the response)?

Thanks..

/Omar

Nov 5 '07 #1
0 1396

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by Milos Prudek | last post: by
4 posts views Thread by Marcin Ciura | last post: by
reply views Thread by Terry Kerr | last post: by
reply views Thread by Robert | last post: by
4 posts views Thread by michaelparkin | last post: by
reply views Thread by gcn | last post: by
5 posts views Thread by runningwild | last post: by
3 posts views Thread by rhXX | last post: by
reply views Thread by rosydwin | 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.