[AGENT++] Broken pipe error with subagent

Frank Fock fock at agentpp.com
Mon Nov 19 20:15:30 CET 2012


Hi Claus,

The signal SIGPIPE does not exists on Windows. So here it has not the be 
handled.

Best regards,
Frank

Am 18.09.2012 06:36, schrieb Claus Klein:
> Hi,
>
> I have found that the SIGPIPE signal can also happens at an agentx
> subagent when the response is delayed and the master agent (net-snmp
> in this case) close the session after timeout:
>
> agentx/master: close transport
> agentx/master: response too late on session 0x39e660
> ...
>
> The subagent examples do not handle this signal?
>
> So I added the following code to the main:
>
> // catch SIGPIPE and ignore it this can occur when the master agent dies
> // and we are trying to send a delayed responce
> #ifndef _WIN32
> 	signal(SIGPIPE, SIG_IGN);
> #endif
>
>
> But how can it handled right under Windows?
>
> Can anyone please help?
>
> Thanks in advance
> Best Regards
> Claus
>
>
> _______________________________________________
> AGENTPP mailing list
> AGENTPP at agentpp.org
> http://lists.agentpp.org/mailman/listinfo/agentpp

-- 
---
AGENT++
Maximilian-Kolbe-Str. 10
73257 Koengen, Germany
https://agentpp.com
Phone: +49 7024 8688230
Fax:   +49 7024 8688231



More information about the AGENTPP mailing list