How to correctly signal postfix to close the session from an TCP Table/Policy Service - Connections are kept open for 1min after service shutdown

2012-08-20 Thread Harakiri
I have a tcp table and policy service - when i shut these down, i close each open session and unbind the listener port - for some reason postfix does not close its client connection to them for about 60sec. Now, is there a sure way to tell postfix to disconnect from his client session? Here

Re: How to correctly signal postfix to close the session from an TCP Table/Policy Service - Connections are kept open for 1min after service shutdown

2012-08-20 Thread Reindl Harald
Am 20.08.2012 14:03, schrieb Harakiri: I have a tcp table and policy service - when i shut these down, i close each open session and unbind the listener port - for some reason postfix does not close its client connection to them for about 60sec. after i shutdown the server and made sure

Re: How to correctly signal postfix to close the session from an TCP Table/Policy Service - Connections are kept open for 1min after service shutdown

2012-08-20 Thread Wietse Venema
Harakiri: I have a tcp table and policy service - when i shut these down, i close each open session and unbind the listener port - for some reason postfix does not close its client connection to them for about 60sec. Yes. Creating a connection for each query is wasteful, especially if your

Re: How to correctly signal postfix to close the session from an TCP Table/Policy Service - Connections are kept open for 1min after service shutdown

2012-08-20 Thread Harakiri
--- On Mon, 8/20/12, Wietse Venema wie...@porcupine.org wrote: From: Wietse Venema wie...@porcupine.org Subject: Re: How to correctly signal postfix to close the session from an TCP Table/Policy Service - Connections are kept open for 1min after service shutdown You can look at

Re: How to correctly signal postfix to close the session from an TCP Table/Policy Service - Connections are kept open for 1min after service shutdown

2012-08-20 Thread Wietse Venema
The tcp_table client timeout is not configurable (it also is not 60s). Closing the socket after each query is wrong. First, you need to set the SO_REUSEADDR socket option on the LISTEN socket. Second, before restarting your server, you need to terminate ALL tcp table server processes.

Re: How to correctly signal postfix to close the session from an TCP Table/Policy Service - Connections are kept open for 1min after service shutdown

2012-08-20 Thread Harakiri
--- On Mon, 8/20/12, Wietse Venema wie...@porcupine.org wrote: From: Wietse Venema wie...@porcupine.org Subject: Re: How to correctly signal postfix to close the session from an TCP Table/Policy Service - Connections are kept open for 1min after service shutdown To: Postfix users