[exim] RFC1413 (ident), TCP Reset & Alarm

Startseite
Nachricht löschen
Nachricht beantworten
Autor: Sander Smeenk
Datum:  
To: exim-users
Betreff: [exim] RFC1413 (ident), TCP Reset & Alarm
Hi,

Why is it that Exim4 (4.60) still waits for an alarm() to occur when a
connection to ident has been rejected with a RST? At least, that is what
seems to happen.

My nagios box rejects ident connections with a TCP RST packet, which
results in a 'Connection refused'. This is the best way to block ident
calls, but Exim still waits for something after connecting and receiving
the connection refused according to this strace retrieved from 'strace
-tt -ff -p $pid', the relevant part:

| 16:55:05.340088 socket(PF_INET, SOCK_STREAM, IPPROTO_IP) = 3
| 16:55:05.340280 bind(3, {sa_family=AF_INET, sin_port=htons(0), 
|       sin_addr=inet_addr("213.136.0.191")}, 16) = 0
| 16:55:05.340361 alarm(15)           = 0
| 16:55:05.340467 connect(3, {sa_family=AF_INET, sin_port=htons(113),
|       sin_addr=inet_addr("213.136.12.136")}, 16) = -1 ECONNREFUSED
| 16:55:14.344961 alarm(0)            = 6
| 16:55:14.345043 close(3)            = 0
| 16:55:14.345108 close(3)            = -1 EBADF (Bad file descriptor)


Hmm. This might be better for exim-dev?

Kind Regards,
Sander.
--
| A bicycle can't stand alone; it is two tired.
| 1024D/08CEC94D - 34B3 3314 B146 E13C 70C8 9BDB D463 7E41 08CE C94D