Commit ec9f09be authored by Lars Magne Ingebrigtsen's avatar Lars Magne Ingebrigtsen
Browse files

(emacs_gnutls_read): Don't infloop while reading.

parent 76e3243a
2010-09-27 Lars Magne Ingebrigtsen <larsi@gnus.org>
 
* gnutls.c (gnutls_log_function): Added more debugging.
(emacs_gnutls_read): Don't infloop while reading.
 
2010-09-27 Kenichi Handa <handa@m17n.org>
 
......
......@@ -67,12 +67,11 @@ emacs_gnutls_read (int fildes, gnutls_session_t state, char *buf,
{
register int rtnval;
do {
rtnval = gnutls_read (state, buf, nbyte);
} while (rtnval == GNUTLS_E_INTERRUPTED || rtnval == GNUTLS_E_AGAIN);
fsync (STDOUT_FILENO);
return (rtnval);
rtnval = gnutls_read (state, buf, nbyte);
if (rtnval >= 0)
return rtnval;
else
return -1;
}
/* convert an integer error to a Lisp_Object; it will be either a
......@@ -268,8 +267,8 @@ KEYFILE and optionally CALLBACK. */)
state = XPROCESS (proc)->gnutls_state;
gnutls_global_set_log_level(4);
gnutls_global_set_log_function(gnutls_log_function);
//gnutls_global_set_log_level(4);
//gnutls_global_set_log_function(gnutls_log_function);
/* always initialize globals. */
global_init = gnutls_emacs_global_init ();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment