| 57 | } |
| 58 | |
| 59 | static int |
| 60 | ssn_handler(TSCont contp, TSEvent event, void *edata) |
| 61 | { |
| 62 | TSHttpSsn ssnp; |
| 63 | TSHttpTxn txnp; |
| 64 | |
| 65 | switch (event) { |
| 66 | case TS_EVENT_HTTP_SSN_START: |
| 67 | |
| 68 | ssnp = static_cast<TSHttpSsn>(edata); |
| 69 | handle_session(ssnp, contp); |
| 70 | TSHttpSsnReenable(ssnp, TS_EVENT_HTTP_CONTINUE); |
| 71 | return 0; |
| 72 | |
| 73 | case TS_EVENT_HTTP_TXN_START: |
| 74 | txnp = static_cast<TSHttpTxn>(edata); |
| 75 | txn_handler(txnp, contp); |
| 76 | TSHttpTxnReenable(txnp, TS_EVENT_HTTP_CONTINUE); |
| 77 | return 0; |
| 78 | |
| 79 | default: |
| 80 | Dbg(dbg_ctl, "In the default case: event = %d", event); |
| 81 | break; |
| 82 | } |
| 83 | return 0; |
| 84 | } |
| 85 | |
| 86 | void |
| 87 | TSPluginInit(int /* argc ATS_UNUSED */, const char ** /* argv ATS_UNUSED */) |
nothing calls this directly
no test coverage detected