you can play with the following options on the router where you
initiate the XOT tunnel ;
"X25 route XOT" options :
xot-keepalive-period Specify TCP keepalive period
xot-keepalive-tries Specify TCP keepalive tries
for the TCP sessions terminated on the router you can play with the
global commands :
Service tcp-keepalives-in Generate keepalives on idle incoming network
connections
Service tcp-keepalives-out Generate keepalives on idle outgoing network
connections
which will help you to fasten to detect an hanging TCP session.