Greetings, people of Vala I try to build an HTTP proxy with libsoup underneath. I realized it like [0], and this solution works well. Unfortunately, as the calls to the target hosts are done synchronously, it's blocking the gui in the time that calls are done. Besides as a result, the proxy also is awfully slow. I tried to fix that using [1]. I substituted the Soup.SessionSync and used a Soup.SessionAsync instead. Further i do not send the method by using .send_message(SoupMessage m) but using .queue_message(SoupMessage m, callback). The outcome of that also is pretty unexpected. The messages are returned to the browser with a status code of 1 and an observation with wireshark revealed, that the packages are never being sent to the target host. Why is that? Most interestingly: The Async-Example from the documentation works with my Vala-Setup. I use Vala 0.16.1 Regards, adn TIA, grindhold [0] Proxy-Code as used in nostril currently: https://github.com/grindhold/nostril/blob/master/src/proxy.vala [1] Modified default_handler with async stuff in it: http://pastebin.com/wgFUpmFk
Attachment:
signature.asc
Description: This is a digitally signed message part