On 2/26/2016 12:09 PM, Saskia van Schagen wrote: > If two smtpd processes would talk over the same connection at the same time, > we may receive something like this:
No, that's where you go very wrong. Each smtpd process has its own connection and there is no crosstalk. This is similar to how you and I can both connect to a single web page and see our own results. Your policy service design is broken. To test your policy service: open two console windows. In each window, use telnet to connect to your policy service. Both should connect immediately. hand-send a policy request in each window. Each window should reply to the data you send in that window. The connection should not close after the reply. Now send another request in each window, and get a reply. Repeat... behavior should be the same each time. Close telnet. Now the policy service can close. This is exactly what postfix does. -- Noel Jones