[phodav] spice: make reading from client cancellable
- From: Victor Toso <victortoso src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [phodav] spice: make reading from client cancellable
- Date: Tue, 3 Mar 2020 11:12:42 +0000 (UTC)
commit d9acc95c8d22daa95106fe4a1ded7bcc4a125424
Author: Jakub Janků <jjanku redhat com>
Date: Thu Aug 22 17:32:57 2019 +0200
spice: make reading from client cancellable
If we don't pass a GCancellable to g_input_stream_read_async(),
the operation can only be intrrupted by closing the stream.
Signed-off-by: Jakub Janků <jjanku redhat com>
spice/spice-webdavd.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/spice/spice-webdavd.c b/spice/spice-webdavd.c
index 2d7879f..c84131f 100644
--- a/spice/spice-webdavd.c
+++ b/spice/spice-webdavd.c
@@ -323,7 +323,7 @@ client_start_read (Client *client)
g_debug ("start read client %p", client);
g_input_stream_read_async (istream,
client->mux.buf, G_MAXUINT16, G_PRIORITY_DEFAULT,
- NULL, client_read_cb, client);
+ cancel, client_read_cb, client);
}
static gboolean
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]