Wietse Venema via Postfix-users wrote in
 <4yjls01jvbzj...@spike.porcupine.org>:
 |Steffen Nurpmeso via Postfix-users:
 |> 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.

Yes, thankfully.  I am fully satisfied. :)

--steffen
|
|Der Kragenbaer,                The moon bear,
|der holt sich munter           he cheerfully and one by one
|einen nach dem anderen runter  wa.ks himself off
|(By Robert Gernhardt)
|
|In Fall and Winter, feel "The Dropbear Bard"s pint(er).
|
|The banded bear
|without a care,
|Banged on himself for e'er and e'er
|
|Farewell, dear collar bear
_______________________________________________
Postfix-users mailing list -- postfix-users@postfix.org
To unsubscribe send an email to postfix-users-le...@postfix.org

Reply via email to