Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > Re: Wierd M2Crypto bug - phony "peer did not return certificate" error

Reply
Thread Tools

Re: Wierd M2Crypto bug - phony "peer did not return certificate" error

 
 
Jean-Paul Calderone
Guest
Posts: n/a
 
      01-19-2007
On Fri, 12 Jan 2007 05:54:42 GMT, John Nagle <(E-Mail Removed)> wrote:
>Heikki Toivonen wrote:
>> http://www.velocityreviews.com/forums/(E-Mail Removed) wrote:
>>
>>> That's a problem for me. I need short timeouts; I'm accessing sites
>>>that might or might not have SSL support, and I need to quickly time
>>>out when there's no SSL server.

>>
>>
>> You should be able to do short timeouts, just not using the global
>> setdefaulttimeout. Have you tried Connection.set_socket_read/write_timeout?

>
> Yes. That does not affect the connect timeout; it's only effective once
>the connection has been opened. And adjusting the session timeout
>just recreates the blocking/non blocking problem.
>
> Incidentally, "get_socket_read_timeout()" doesn't work. Generates
>"EXCEPTION at socket level: unpack str size does not match format",
>every time, at least with Python 2.4 on Windows. The lower level
>function returns one number as a string, like "7200", and the unpack
>function tries to unpack it as "ll", which fails.
>
>> Also like I mentioned before, if you use the Twisted wrapper and let
>> Twisted handle network stuff you should be fine.

>
> That would mean struggling with Twisted and dealing with its bugs.
>(For example, has the MySQLdb mess been resolved for Twisted's API?)


http://twistedmatrix.com/trac/search...mp=1&ticket=on

I'd say so, unless you're referring to a bug you never reported (we only
fix those at about half the rate of reported bugs).

Jean-Paul
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Nauseating. Even Leica playing the phony "I.S." game Rich Digital Photography 12 04-10-2007 05:54 AM
Wierd M2Crypto bug - phony "peer did not return certificate" error John Nagle Python 7 01-13-2007 04:23 AM
creating Phony links Buddy Ackerman ASP .Net 2 03-09-2005 03:55 AM
Phony sites about phoney towns. bambam@nospam.tnx Computer Support 16 02-12-2005 06:08 PM



Advertisments