[glib-networking/mcatanzaro/tls-thread: 16/19] progress
- From: Michael Catanzaro <mcatanzaro src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib-networking/mcatanzaro/tls-thread: 16/19] progress
- Date: Sat, 10 Aug 2019 00:43:58 +0000 (UTC)
commit 1239abbc60d6f277aff557102a1263593ecab1cd
Author: Michael Catanzaro <mcatanzaro gnome org>
Date: Fri Aug 9 16:42:58 2019 -0500
progress
tls/base/gtlsthread.c | 5 +++++
1 file changed, 5 insertions(+)
---
diff --git a/tls/base/gtlsthread.c b/tls/base/gtlsthread.c
index 0d5eba1..d9e56a5 100644
--- a/tls/base/gtlsthread.c
+++ b/tls/base/gtlsthread.c
@@ -27,6 +27,8 @@
#include "gtlsthread.h"
+#include <glib/gi18n-lib.h>
+
/* The purpose of this class is to ensure the underlying TLS library is only
* ever used on a single thread. There are multiple benefits of this:
*
@@ -390,6 +392,9 @@ process_op (GAsyncQueue *queue,
if (!op)
{
/* Timeout has been reached. */
+ op->count = 0;
+ g_set_error (&op->error, G_IO_ERROR, G_IO_ERROR_TIMED_OUT,
+ _("Socket I/O timed out"));
goto finished;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]