Parameters
closed_event (int)
If set to 0 (gloabbly disabled), the "tcp:closed" event route will never be called on TCP
disconnections.
If set to 1 (globally enabled), the "tcp:closed" event route will always be called on TCP
disconnections.
If set to 2 ("manual" mode), the "tcp:closed" event route will only be called on TCP
connections for which tcp_enable_closed_event() has
been applied, when a disconnection occurs.
Default value is 1 (globally enabled).
Set closed_event parameter
...
modparam("tcpops", "closed_event", 0)
...