GNOME Bugzilla – Bug 452280
Data corruption when using soup_message_io_pause() from a "got-chunk" callback
Last modified: 2007-11-19 17:56:42 UTC
If soup_message_io_pause() is called from the "got-chunk" callback then the callback is called with junk in msg->response.body.
Created attachment 90883 [details] An example
Oops, sorry about the delay. I sat down to debug this and then realized that the answer is "don't do that then". soup_message_io_pause() is only for server-side message processing. I've clarified the docs to indicate that.
OK, someone else wants this functionality too...
Without this fix is not possible to do async I/O when receiving a file. I use libsoup in telepathy-salut to send/receive files in a LAN, so the network could be faster than the disk and I have to choose between doing sync I/O (freezing the process!) or buffering everything in memory. Please fix this bug :)
fixed in CVS, and will go out in libsoup 2.2.104 with GNOME 2.20.2 next week