MINOR: spoe: Add status code in error variable instead of hardcoded value
authorChristopher Faulet <cfaulet@haproxy.com>
Wed, 4 Jan 2017 15:39:11 +0000 (16:39 +0100)
committerWilly Tarreau <w@1wt.eu>
Thu, 9 Mar 2017 14:32:55 +0000 (15:32 +0100)
commitb067b06fc79a7dc08708ce1fbe4cda172c33bf87
treec7e32d095f90cb6c61095aec9ff11c58da41c299
parent42bfa46234f4920be22e0dbd0107c6120b1f7437
MINOR: spoe: Add status code in error variable instead of hardcoded value

Now, when option "set-on-error" is enabled, we set a status code representing
the error occurred instead of "true". For values under 256, it represents an
error coming from the engine. Below 256, it reports a SPOP error. In this case,
to retrieve the right SPOP status code, you must remove 256 to this value. Here
are possible values:

  * 1:     a timeout occurred during the event processing.
  * 2:     an error was triggered during the ressources allocation.
  * 255:   an unknown error occurred during the event processing.
  * 256+N: a SPOP error occurred during the event processing.
doc/SPOE.txt
src/flt_spoe.c