le: timeout after 5 seconds of no packets on a data channel

This is very ugly code that should be cleaned up.