473,405 Members | 2,310 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

ssl and timeout issue

Hello,

I cannot manage to use socket timeouts with an imap ssl connector,and i
badly *need* it :'(

I have already mentionned it here:
http://archives.free.net.ph/message/...390efe.en.html

Does anyone have a solution ?

(I thought of coding my own threaded timer over the ssl socket, but...)
Tarek

Traceback:
from imaplib import IMAP4_SSL, IMAP4_SSL_PORT
import socket
test = IMAP4_SSL('mail.xxxx.com', 993)
test.sock.settimeout(10)
test.login('xxx@xxx', 'password') Traceback (most recent call last):
File "<stdin>", line 1, *in* ?
File "/usr/lib/python2.4/imaplib.py", line 480, *in* login
typ, dat = self._simple_command('LOGIN', user, self._quote(password))
File "/usr/lib/python2.4/imaplib.py", line 1028, *in* _simple_command
*return* self._command_complete(name, self._command(name, *args))
File "/usr/lib/python2.4/imaplib.py", line 858, *in* _command_complete
typ, data = self._get_tagged_response(tag)
File "/usr/lib/python2.4/imaplib.py", line 959, *in* _get_tagged_response
self._get_response()
File "/usr/lib/python2.4/imaplib.py", line 876, *in* _get_response
resp = self._get_line()
File "/usr/lib/python2.4/imaplib.py", line 969, *in* _get_line
line = self.readline()
File "/usr/lib/python2.4/imaplib.py", line 1135, *in* readline
char = self.sslobj.read(1)
socket.sslerror: The read operation timed out test = IMAP4_SSL('mail.xxxx.com', 993)
test.login('xxx@xxx', 'password')

('OK', ['LOGIN Ok.'])

--
Tarek Ziadé | Nuxeo R&D (Paris, France)
CPS Plateform : http://www.cps-project.org
mail: tziade at nuxeo.com | tel: +33 (0) 6 30 37 02 63
You need Zope 3 - http://www.z3lab.org/

Oct 19 '05 #1
0 1504

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
by: E Sullivan | last post by:
I am having a time out issue when multiple users are accessing the server. This time out does not happen all of the time. My understanding is that the time out value is actually set in two places....
11
by: Rangi Keen | last post by:
I am instantiating an XmlSerializer using the XmlSerializer(Type) constructor. This works most of the time, but sometimes I get a timeout during the process. I'm using the same type in all cases...
8
by: bdeviled | last post by:
I am deploying to a web environment that uses load balancing and to insure that sessions persist across servers, the environment uses SQL to manage sessions. The machine.config file determines how...
0
by: DavidS | last post by:
Have Visual Studio.NET installed on Microsoft 2000 Professional OS. No issue EVER with SQL connections - MDAC components too. Purchased new laptop and have Windows XP Professional SP2 as OS. ...
10
by: greenb | last post by:
Our asp.net web app uses a .NET component (DLL) in the bin directory to call several stored procedures back to back to perform updates. They don't return any data. Sometimes the total execution...
4
by: A.M-SG | last post by:
Hi, How can I increase the HTTP Timeout value at the client side? Thank you, Alan
1
by: Greg Allen | last post by:
I have a timeout issue with a long running web service, and I can't figure out where the timeout value is coming from. In the client I end up getting the following exception: The underlying...
3
by: steph_mw | last post by:
I have a web application and when a user opens the application (using windows integration) and loads some data, it loads a ID number into the session state. If for some reason they go away from...
1
by: msmith | last post by:
MSSQL Server 2000 SP3 in both houston and memphis I have a database in houston, lets call it RED. Specific tables from database RED are copied to database BLUE. Database BLUE is then backed...
1
by: Jake K | last post by:
I have a system timer that elapses every 10 seconds and must execute every ten seconds. Basically every 10 seconds I need to insert into a table. The following code, however, causes a "Timeout...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.