Re: Hang up reading Yandex mail box listing.
Charles Cazabon <[email protected]>
| Newsgroups | gmane.mail.getmail.user |
|---|---|
| Message-ID | <[email protected]> |
Viacheslav Chimishuk <[email protected]> wrote: > > 2. self.conn.sock.setblocking(1) is called > this is the place where timeout is set to None for the socket [...] > > Looks like this is it -- the bug we are looking for. Charles, what do > you think? What is the purpose of setblocking(1) call here? This is likely a workaround for the (old, now-fixed) bug in the Python standard library. Without it (as I recall), SSL connections were unreliable and could return garbage when reading, and cause exceptions when writing. If this is the case - and I could be wrong, getmail has 20 years of history at this point - then it should no longer be needed. If you comment out or remove the setblocking() call, does the issue go away? Charles -- ----------------------------------------------------------------------- Charles Cazabon GPL'ed software available at: http://pyropus.ca/software/ -----------------------------------------------------------------------