https://bugs.openldap.org/show_bug.cgi?id=10113

          Issue ID: 10113
           Summary: make connection debug output more uniform
           Product: OpenLDAP
           Version: 2.6.6
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Keywords: needs_review
          Severity: enhancement
          Priority: ---
         Component: slapd
          Assignee: b...@openldap.org
          Reporter: h...@openldap.org
  Target Milestone: ---

Here's what some of the debug output looks like currently:

6529a16e.07884bd6 0x7f7a68dff640 daemon: epoll: listen=8 active_threads=0
tvp=NULL
6529a16e.0788551d 0x7f7a68dff640 daemon: activity on 1 descriptor
6529a16e.07885e63 0x7f7a68dff640 daemon: activity on:6529a16e.07886607
0x7f7a68dff640 
6529a16e.07886f93 0x7f7a68dff640 daemon: epoll: listen=7 active_threads=0
tvp=NULL
6529a16e.07887737 0x7f7a68dff640 daemon: epoll: listen=8 active_threads=0
tvp=NULL
6529a16e.0788987f 0x7f7a63fff640 tls_write: want=239 error=Broken pipe
6529a16e.0788a369 0x7f7a63fff640 TLS trace: SSL_accept:SSLv3/TLS write session
ticket
6529a16e.0788d027 0x7f7a63fff640 connection_read(12): unable to get TLS client
DN, error=49 id=1000
6529a16e.0788e6cc 0x7f7a63fff640 conn=1000 fd=12 TLS established tls_ssf=128
ssf=128 tls_proto=TLSv1.3 tls_cipher=TLS_AES_128_GCM_SHA256
6529a16e.078974a9 0x7f7a68dff640 daemon: activity on 2 descriptors
6529a16e.07898cf1 0x7f7a68dff640 daemon: activity on:6529a16e.07899409
0x7f7a68dff640  12r6529a16e.07899ef3 0x7f7a68dff640 
6529a16e.0789a839 0x7f7a68dff640 daemon: read active on 12
6529a16e.0789c1de 0x7f7a68dff640 daemon: epoll: listen=7 active_threads=0
tvp=NULL
6529a16e.0789cd0e 0x7f7a68dff640 daemon: epoll: listen=8 active_threads=0
tvp=NULL
6529a16e.0789d9e0 0x7f7a68dff640 daemon: activity on 1 descriptor
6529a16e.0789e36d 0x7f7a68dff640 daemon: activity on:6529a16e.0789eaca
0x7f7a68dff640 
6529a16e.0789f26e 0x7f7a68dff640 daemon: epoll: listen=7 active_threads=0
tvp=NULL
6529a16e.0789fd9d 0x7f7a68dff640 daemon: epoll: listen=8 active_threads=0
tvp=NULL
6529a16e.078a0a70 0x7f7a63fff640 connection_get(12)
6529a16e.078a1ea0 0x7f7a63fff640 connection_get(12): got connid=1000
6529a16e.078a25b8 0x7f7a63fff640 connection_read(12): checking for input on
id=1000
6529a16e.078a32d0 0x7f7a63fff640 ber_get_next
6529a16e.078a6a78 0x7f7a63fff640 tls_read: want=5, got=5
6529a16e.078a7d91 0x7f7a63fff640   0000:  30 05 02 01 02                       
             0....             
6529a16e.078aa0c2 0x7f7a63fff640 tls_write: want=24 error=Broken pipe
6529a16e.078aa820 0x7f7a63fff640 ldap_read: want=8 error=Broken pipe
6529a16e.078ab121 0x7f7a63fff640 ber_get_next on fd 12 failed errno=32 (Broken
pipe)
6529a16e.078aba67 0x7f7a63fff640 connection_read(12): input error=-2 id=1000,
closing.
6529a16e.078ac3ae 0x7f7a63fff640 connection_closing: readying conn=1000 sd=12
for close
6529a16e.078ad0c6 0x7f7a63fff640 connection_close: conn=1000 sd=12
6529a16e.078aed26 0x7f7a63fff640 daemon: removing 12
6529a16e.078b2ffd 0x7f7a68dff640 daemon: activity on 1 descriptor
6529a16e.078b4616 0x7f7a63fff640 conn=1000 fd=12 closed (connection lost)

Most operations will be logged with "conn=xxxx fd=yy blah blah" but things like
connection_close etc log "blah blah conn=xxxx sd=yy" instead. It would be nice
if they all uniformly started with "conn=xxxx fd=yy blah blah"

This is a trivial change. Could be a good first-time commit for a new dev.

-- 
You are receiving this mail because:
You are on the CC list for the issue.

Reply via email to