settings network timeouts in python

Narendra narendra.amirinenis at gmail.com
Mon Dec 19 11:57:39 EST 2005


Hi All,

I have a problem here. I'm connecting to some pop server.Here i need to
set the network timeouts,since some times my program disconnecting from
net at tht point of time I'm unable to connect to POP server. Can any
one provide the solution for it.

code;

import poplib
m=poplib.POP3('pop.mail.yahoo.com',110)
m.user('XXX')
m.pass_('XXX')
 # here i need to set the network time out when I'm connecting to POP
server. i.e in the line
m=poplib.POP3('pop.mail.yahoo.com')


Any help can be greatly appreciated

Thanks,
Narendra




More information about the Python-list mailing list