Skip to content

parser: Don't use thread to read async from stream

Mohammed Sadiq requested to merge wip/sadiq/parser-read-async into master

Some GInputStream may not support reading from a different thread (eg: libsoup3[0]). So instead of reading the stream in the task thread, use the async read API of GInputStream. Since read_async is optional (as GLib handles it if not implemented) This shouldn't be an issue for users.

[0] https://libsoup.org/libsoup-3.0/client-thread-safety.html

Merge request reports