Re: One more attempt: stuck processes

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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
----
Cyrus Home Page: http://cyrusimap.web.cmu.edu/
Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html

[Index of Archives]     [Cyrus SASL]     [Squirrel Mail]     [Asterisk PBX]     [Video For Linux]     [Photo]     [Yosemite News]     [gtk]     [KDE]     [Gimp on Windows]     [Steve's Art]

  Powered by Linux