Fix libsoup issue by sending chunks in main loop