Re: got_body signal



Wouter Cloetens wrote:
To begin; the documentation tags refer to signals with dashes between
the words, but the actual strings have underscores, e.g. got-headers vs.
got_headers.

"-" and "_" are equivalent in signal names. The gtk sources show the same inconsistency in usage... (In particular, I think the issue is that people prefer to use "_" in the actual signal names, but gtk-doc requires you to use "-" in the docs.)

My real issue though: I'm not getting the got_body signal.

This is with the code you were working on the other day? Unfortunately, after we talked I remembered that there's a bug with using soup_message_io_pause() from within a got_chunk callback. (http://bugzilla.gnome.org/show_bug.cgi?id=452280) I'd previously closed it as NOTABUG, because soup_message_io_pause() was only meant to be used on the server side, but I realize now that there is a legitimate use case for it on the client side too. So there will be a fix for that soon, although I'm not sure when there'll be an actual release.

(As for working around the bug in the current sources, the best you can do is to just not use pause/unpause, but instead depend only on starting and stopping the main loop to control I/O. But that means you have to deal with the possibility of multiple chunks being emitted each time you start the loop.)

-- Dan


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]