Re: syncronous requests
Marco Milanesi <[email protected]> Wed, 22 May 2002 17:53:02 +0200
| Newsgroups | gmane.comp.gnome.ximian.soup |
|---|---|
| Message-ID | <[email protected]> |
> > I've seen a soup_message_send function, but I'm wondering how can I read > > a SOAP response after sending a SOAP message. > soup_message_send is what you want. After calling it, all you need is in > the SoupMessage structure. ok, thank you. > > PS: I need to avoid the g_main_run() main loop mechanism because > > I'm having strange behaviours. (i.e. an endless main loop that sucks all CPU > > resources) > well, soup_message_send just runs the main loop and waits for it to > finish, so you may still have the same problems (that is, callback > functions, idle/timeout handlers being called in the middle of the > soup_message_send call). mmm, effectively soup_message_send uses g_main_iteration and I'm still having that sucking of CPU resources. well, I'm a bit stumped now. I've debugged g_main_iteration a little but I'm not really confident with it. maybe it's possible to set a timeout for the main loop? or are there any known causes for this behaviour? anyway, I'm using libsoup inside an apache module. ciao, Marco PS: sorry for being a little ot now. _______________________________________________ Soup-list maillist - [email protected] http://lists.ximian.com/mailman/listinfo/soup-list