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

Discussion in 'Python' started by Jean-Paul Calderone, Jan 19, 2007.

  1. On Fri, 12 Jan 2007 05:54:42 GMT, John Nagle <> wrote:
    >Heikki Toivonen wrote:
    >> 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?q=MySQLdb&noquickjump=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
    Jean-Paul Calderone, Jan 19, 2007
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Buddy Ackerman

    creating Phony links

    Buddy Ackerman, Mar 9, 2005, in forum: ASP .Net
    Replies:
    2
    Views:
    421
    Buddy Ackerman
    Mar 9, 2005
  2. Sean
    Replies:
    8
    Views:
    934
  3. John Nagle
    Replies:
    7
    Views:
    524
    John Nagle
    Jan 13, 2007
  4. John Nagle

    M2Crypto possible intermittent bug

    John Nagle, Oct 10, 2007, in forum: Python
    Replies:
    5
    Views:
    306
    John Nagle
    Oct 12, 2007
  5. medicalfraud
    Replies:
    0
    Views:
    491
    medicalfraud
    Apr 12, 2009
Loading...

Share This Page