Postfix & check_policyd_service no concurrent connections?

2016-02-24 Thread saskia101
Hi, I wrote a multithreading policy daemon in C to run with Postfix. I made a thread pool of 8 threads, waiting for a connection from Postfix. Everything works nice, however, there are always 7 threads idle, it's always just 1 thread doing some work, even though I have a busy mail server. Connecti

Re: Postfix & check_policyd_service no concurrent connections?

2016-02-24 Thread saskia101
Thanks Wietse! I was indeed closing the connection, however after sending my action= reply. Why would Postfix then think there's an error. Before coding it this way, I also checked your manual and there was nothing about closing or not closing the connection (when there is no error). Anyway, I rem

Re: Postfix & check_policyd_service no concurrent connections?

2016-02-26 Thread saskia101
I guess there's still a problem... At least messages are now send faster than 1 per second through the policy daemon, but still Postfix is not treating the policy daemon as multi threaded. Postfix seems to wait until he got is "action=" answer, before sending a new request. Even if I send back the