Steffen Nurpmeso via Postfix-users: > Hello. > > For the first time ever i today get quite some of > > Jan 28 22:55:48 ouwa/smtpd[14615]: connect from unknown[unknown] > Jan 28 22:55:48 ouwa/smtpd[14615]: lost connection after CONNECT from > unknown[unknown] > Jan 28 22:55:48 ouwa/smtpd[14615]: disconnect from unknown[unknown] > commands=0/0 > > which broke my simple awk parser (you know, the one who collects > info from textual log messages to turn them into firewall info). > I am stunned -- getpeername() fails on a connected TCP socket?
1. The client connects. The kernel schedules a process to wake up from epoll(2). 2. The client disconnects before the process calls getpeername(). 3. The process wakes up, calls accept(), gets the closed connection, calls getpeername(). There is no peer, thus no peer info. Fortunately, Postfix is more robust. Wietse _______________________________________________ Postfix-users mailing list -- postfix-users@postfix.org To unsubscribe send an email to postfix-users-le...@postfix.org