ironbee/ironbee — Issue #14: example lua module now fails in onEventHandleRequestHeaders
Author: wmetcalf
Created: 2011-11-02 20:47:55+00:00
State: open

```
[Wed Nov 02 15:18:42 2011] [alert] IronBee: [3903] ERROR - Failed to exec lua wrapper for "example.onEventHandleRequestHeaders" - string length overflow (2)

Wed Nov 02 15:18:41 2011] [debug] mod_ironbee.c(292): IronBee: Child init pid=3906
[Wed Nov 02 15:18:41 2011] [debug] proxy_util.c(1806): proxy: grabbed scoreboard slot 0 in child 3906 for worker proxy:reverse
[Wed Nov 02 15:18:41 2011] [debug] proxy_util.c(1825): proxy: worker proxy:reverse already initialized
[Wed Nov 02 15:18:41 2011] [debug] proxy_util.c(1922): proxy: initialized single connection worker 0 in child 3906 for (*)
[Wed Nov 02 15:18:41 2011] [debug] mod_ironbee.c(292): IronBee: Child init pid=3907
[Wed Nov 02 15:18:41 2011] [debug] proxy_util.c(1806): proxy: grabbed scoreboard slot 0 in child 3907 for worker proxy:reverse
[Wed Nov 02 15:18:41 2011] [debug] proxy_util.c(1825): proxy: worker proxy:reverse already initialized
[Wed Nov 02 15:18:41 2011] [debug] proxy_util.c(1922): proxy: initialized single connection worker 0 in child 3907 for (*)
[Wed Nov 02 15:18:42 2011] [debug] mod_ironbee.c(327): IronBee: ironbee_pre_connection remote=127.0.0.1:55530 local=127.0.0.1:9931
[Wed Nov 02 15:18:42 2011] [debug] mod_ironbee.c(173): IronBee: [3903] LuaFFI - example.onEventConnStarted ib=0x7f12b179fa30 conn=0x7f12b17cf4d0
[Wed Nov 02 15:18:42 2011] [debug] mod_ironbee.c(173): IronBee: [3903] LuaFFI - example.onEventConnOpened ib=0x7f12b179fa30 conn=0x7f12b17cf4d0
[Wed Nov 02 15:18:42 2011] [debug] mod_ironbee.c(173): IronBee: [3903] LuaFFI - example.onEventHandleContextConn ib=0x7f12b179fa30 conn=0x7f12b17cf4d0
[Wed Nov 02 15:18:42 2011] [debug] mod_ironbee.c(173): IronBee: [3903] LuaFFI - Created PCRE matcher=0x7f12b17d9818
[Wed Nov 02 15:18:42 2011] [debug] mod_ironbee.c(173): IronBee: [3903] LuaFFI - Created radix matcher=0x7f12b17d9845
[Wed Nov 02 15:18:42 2011] [debug] mod_ironbee.c(173): IronBee: [3903] LuaFFI - Created ac matcher=0x7f12b17d9873
[Wed Nov 02 15:18:42 2011] [debug] mod_ironbee.c(173): IronBee: [3903] LuaFFI - example.onEventHandleConnect ib=0x7f12b179fa30 conn=0x7f12b17cf4d0
[Wed Nov 02 15:18:42 2011] [debug] mod_ironbee.c(602): FETCH BRIGADE (buffering)
[Wed Nov 02 15:18:42 2011] [debug] mod_ironbee.c(173): IronBee: [3903] LuaFFI - example.onEventConnDataIn: GET / HTTP/1.1\r\nHost: foo\r\n\r\n
[Wed Nov 02 15:18:42 2011] [debug] mod_ironbee.c(173): IronBee: [3903] LuaFFI - example.onEventTxStarted ib=0x7f12b179fa30 tx=4eb1a5a2-1afa-4090-8fff-0f3f1918ffe8
[Wed Nov 02 15:18:42 2011] [debug] mod_ironbee.c(173): IronBee: [3903] LuaFFI - example.onEventRequestStarted ib=0x7f12b179fa30 tx=4eb1a5a2-1afa-4090-8fff-0f3f1918ffe8
[Wed Nov 02 15:18:42 2011] [debug] mod_ironbee.c(173): IronBee: [3903] LuaFFI - example.onEventTxDataIn[2]: GET / HTTP/1.1\r\n
[Wed Nov 02 15:18:42 2011] [debug] mod_ironbee.c(173): IronBee: [3903] LuaFFI - example.onEventTxDataIn[3]: Host: foo\r\n
[Wed Nov 02 15:18:42 2011] [debug] mod_ironbee.c(173): IronBee: [3903] LuaFFI - example.onEventTxDataIn[3]: \r\n
[Wed Nov 02 15:18:42 2011] [debug] mod_ironbee.c(173): IronBee: [3903] Adding request_headers fields
[Wed Nov 02 15:18:42 2011] [debug] mod_ironbee.c(173): IronBee: [3903] LuaFFI - example.onEventRequestHeaders ib=0x7f12b179fa30 tx=4eb1a5a2-1afa-4090-8fff-0f3f1918ffe8
[Wed Nov 02 15:18:42 2011] [debug] mod_ironbee.c(173): IronBee: [3903] LuaFFI - example.onEventHandleContextTx ib=0x7f12b179fa30 tx=4eb1a5a2-1afa-4090-8fff-0f3f1918ffe8
[Wed Nov 02 15:18:42 2011] [debug] mod_ironbee.c(173): IronBee: [3903] No signatures for phase=0 ctx=0x7f12b17babc0
[Wed Nov 02 15:18:42 2011] [debug] mod_ironbee.c(173): IronBee: [3903] LuaFFI - example.onEventHandleRequestHeaders ib=0x7f12b179fa30 tx=4eb1a5a2-1afa-4090-8fff-0f3f1918ffe8
[Wed Nov 02 15:18:42 2011] [debug] mod_ironbee.c(173): IronBee: [3903] LuaFFI - Request line is a field type: 4
[Wed Nov 02 15:18:42 2011] [debug] mod_ironbee.c(173): IronBee: [3903] LuaFFI - Request Line cvalue: 0x7f12b17dee0d
[Wed Nov 02 15:18:42 2011] [alert] IronBee: [3903] ERROR - Failed to exec lua wrapper for "example.onEventHandleRequestHeaders" - string length overflow (2)
[Wed Nov 02 15:18:42 2011] [warn] IronBee: [3903] ERROR - Error executing lua handler
```