adium 5894:60d7d05396d7: Workaround for Yahoo's https server clo...
commits at adium.im
commits at adium.im
Mon Nov 10 14:02:50 UTC 2014
details: http://hg.adium.im/adium/rev/60d7d05396d7
revision: 5894:60d7d05396d7
branch: adium-1.5.11
author: mathuaerknedam <adium at ei8ht.us>
date: Fri Nov 07 09:24:06 2014 -0600
Workaround for Yahoo's https server closing the connection without sending close_notify first. Thanks to reanimus for the patch. Fixes #16678. r=kbotc
diffs (33 lines):
diff -r 11518a4e520d -r 60d7d05396d7 Plugins/Purple Service/libpurple_extensions/ssl-cdsa.c
--- a/Plugins/Purple Service/libpurple_extensions/ssl-cdsa.c Sat Jul 26 10:07:55 2014 -0400
+++ b/Plugins/Purple Service/libpurple_extensions/ssl-cdsa.c Fri Nov 07 09:24:06 2014 -0600
@@ -644,6 +644,14 @@
case errSSLClosedGraceful:
result = 0;
break;
+ case errSSLClosedNoNotify:
+ result = ((processed > 0) ? processed : 0);
+ purple_debug_info("cdsa", "receive got a premature termination" );
+ break;
+ case errSSLClosedAbort:
+ result = ((processed > 0) ? processed : 0);
+ purple_debug_info("cdsa", "receive got a premature termination" );
+ break;
default:
result = -1;
purple_debug_error("cdsa", "receive failed (%d): %s\n", (int)err, strerror(errno));
@@ -682,6 +690,14 @@
case errSSLClosedGraceful:
result = 0;
break;
+ case errSSLClosedNoNotify:
+ result = ((processed > 0) ? processed : 0);
+ purple_debug_info("cdsa", "send got a premature termination" );
+ break;
+ case errSSLClosedAbort:
+ result = ((processed > 0) ? processed : 0);
+ purple_debug_info("cdsa", "send got a premature termination" );
+ break;
default:
result = -1;
purple_debug_error("cdsa", "send failed (%d): %s\n", (int)err, strerror(errno));
More information about the commits
mailing list