Ticket #47 (defect)
Opened 2 years ago
Last modified 2 years ago
Fast subsequent tny_folder_get_msgs cause connection problems
Status: closed (fixed)
| Reported by: | pvanhoof | Assigned to: | pvanhoof |
|---|---|---|---|
| Priority: | blocker | Milestone: | A first release |
| Component: | libtinymail-camel | Version: | 1.0 |
| Keywords: | Cc: | dirk-jan.binnema@nokia.com | |
Due to incorrect locking in camel_imap_folder_fetch_data in camel-imap-folder.c, tny_folder_get_msg_async on a TnyCamelImapFolder? instance can (and will) cause connection problems (it'll loose track, as two threads will have started reading out the buffer simultaneously).
A review of the locking in combination with a second-thread for getting messages should fix this.
You can debug-test this problem by clicking around in the demo user interface. If you manage to click faster than that you are receiving the messages, you'll trigger this bug (because a new tny_folder_get_msg_async will happen).
Same goes for tny_folder_get_msg by the way.
Attachments
Change History
05/04/07 11:00:25: Modified by pvanhoof
- status changed from new to closed.
- resolution set to fixed.

Should be fixed, as get_msg on the IMAP code now always starts a new thread and a new connection.