Opened 4 years ago

Closed 3 years ago

#1486270 closed Bugs (fixed)

Infinite Loop if server terminates connection

Reported by: amistry Owned by: thomasb
Priority: 5 Milestone: 0.4-beta
Component: IMAP connection Version: 0.3.1
Severity: normal Keywords:
Cc:

Description

The iil_C_FetchHeaders and iil_C_GetQuota methods will loop infinitely if the server just terminates the connection and the Readline return is an empty string. Check for these conditions. It's my hunch that this "bug" occurs other places in the IMAP library.

Attachments (1)

imap.inc.patch (664 bytes) - added by amistry 4 years ago.

Download all attachments as: .zip

Change History (5)

Changed 4 years ago by amistry

comment:1 Changed 4 years ago by amistry

I can reproduce this on Courier-IMAP 3.0.8

comment:2 Changed 4 years ago by alec

  • Milestone changed from later to 0.4-beta

comment:3 Changed 3 years ago by thomasb

  • Owner set to thomasb
  • Status changed from new to assigned

comment:4 Changed 3 years ago by alec

  • Resolution set to fixed
  • Status changed from assigned to closed

Fixed in [59c216f3].

Note: See TracTickets for help on using tickets.