One more attempt: stuck processes

Ken Murchison murch at andrew.cmu.edu
Fri Nov 16 12:39:28 EST 2007


Sebastian Hagedorn wrote:

> Nov 16 18:00:26 lvr13 pop3s[3847]: SSL_read() returned 0
> Nov 16 18:00:34 lvr13 pop3s[3215]: SSL_read() returned 0
> Nov 16 18:00:34 lvr13 pop3s[3199]: SSL_read() returned 0
> Nov 16 18:00:39 lvr13 pop3s[3199]: SSL_read() returned 0
> Nov 16 18:00:43 lvr13 pop3s[3229]: SSL_read() returned 0
> 
> Not all of these processes are stuck, though. (Maybe none are). Should I 
> be looking for something specific?

Sorry, my patch wasn't complete.  It wasn't logging the value that I 
wanted.  Try this:

--- prot.c.~1.93.~	2007-11-16 11:21:56.000000000 -0500
+++ prot.c	2007-11-16 12:37:55.000000000 -0500
@@ -468,6 +468,10 @@
  	    /* just do a SSL read instead if we're under a tls layer */
  	    if (s->tls_conn != NULL) {
  		n = SSL_read(s->tls_conn, (char *) s->buf, PROT_BUFSIZE);
+		if (n <= 0) {
+		    syslog(LOG_WARNING, "SSL_read() returned %d:%d",
+			   n, SSL_get_error(s->tls_conn, n));
+		}
  	    } else {
  		n = read(s->fd, s->buf, PROT_BUFSIZE);
  	    }


-- 
Kenneth Murchison
Systems Programmer
Project Cyrus Developer/Maintainer
Carnegie Mellon University


More information about the Info-cyrus mailing list