I try to implement simple iRule to check the TCP payload both client side and server side. The conversation is full duplex so we can not expect the sequence of communication. The following iRule seem to block the server side connection.
when CLIENT_ACCEPTED {
TCP::collect
}
when CLIENT_DATA {
log “check TCP payload”
}
when SERVER_CONNECTED {
TCP::collect
}
when SERVER_DATA {
log “Check TCP payload”
}
For example, client open connection to server port 8081 (S:1034,D:8081) but after TCP handshake, not data send from client. In the same time, server start feed traffic to client use previous connection (S:8081, D:1034) but data never reach the client. It seem like iRule hang at CLIENT_ACCEPTED event (TCP::collect).
Is it normal?