[evolution-data-server/account-mgmt: 38/38] Camel debugging hack (temporary)
- From: Matthew Barnes <mbarnes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-data-server/account-mgmt: 38/38] Camel debugging hack (temporary)
- Date: Sun, 26 Feb 2012 05:22:08 +0000 (UTC)
commit daca4ad69b800658b96cedc5c0b0e931e71a0546
Author: Matthew Barnes <mbarnes redhat com>
Date: Sat Jan 21 08:57:28 2012 -0500
Camel debugging hack (temporary)
camel/camel-tcp-stream-raw.c | 19 ++++++++++++++++---
1 files changed, 16 insertions(+), 3 deletions(-)
---
diff --git a/camel/camel-tcp-stream-raw.c b/camel/camel-tcp-stream-raw.c
index 3bb8b24..2b7a009 100644
--- a/camel/camel-tcp-stream-raw.c
+++ b/camel/camel-tcp-stream-raw.c
@@ -171,6 +171,7 @@ static void
tcp_stream_cancelled (GCancellable *cancellable,
PRThread *thread)
{
+ g_debug ("%p: %s", (gpointer) cancellable, G_STRFUNC);
PR_Interrupt (thread);
}
@@ -328,8 +329,12 @@ read_from_prfd (PRFileDesc *fd,
if (cancel_id > 0)
g_cancellable_disconnect (cancellable, cancel_id);
- if (g_cancellable_set_error_if_cancelled (cancellable, error))
+ if (g_cancellable_set_error_if_cancelled (cancellable, error)) {
+ g_debug (
+ "%p: (%s) Cancellation acknowledged",
+ (gpointer) cancellable, G_STRFUNC);
return -1;
+ }
if (bytes_read == -1) {
tcp_stream_set_error_from_pr_error (error);
@@ -382,8 +387,12 @@ write_to_prfd (PRFileDesc *fd,
if (cancel_id > 0)
g_cancellable_disconnect (cancellable, cancel_id);
- if (g_cancellable_set_error_if_cancelled (cancellable, error))
+ if (g_cancellable_set_error_if_cancelled (cancellable, error)) {
+ g_debug (
+ "%p: (%s) Cancellation acknowledged",
+ (gpointer) cancellable, G_STRFUNC);
return -1;
+ }
if (bytes_written == -1) {
tcp_stream_set_error_from_pr_error (error);
@@ -523,8 +532,12 @@ socket_connect (struct addrinfo *host,
if (cancel_id > 0)
g_cancellable_disconnect (cancellable, cancel_id);
- if (g_cancellable_set_error_if_cancelled (cancellable, error))
+ if (g_cancellable_set_error_if_cancelled (cancellable, error)) {
+ g_debug (
+ "%p: (%s) Cancellation acknowledged",
+ (gpointer) cancellable, G_STRFUNC);
goto fail;
+ }
if (status == PR_FAILURE) {
tcp_stream_set_error_from_pr_error (error);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]