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>
{
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
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 ();