libgmail is working very well for me, but I am unable to set a timeout for connections, particularly when working with a proxy. If the proxy connection just hangs, there will be no error raised or anything, it'll just try to login forever. I have tried socket.setdefaulttimeout(5) in a bunch of places but am still unable to set the timeout.
I am using python 2.4.
Any help would be appreciated. Thank you.