When using HttpTunnel reconnect is not possible
How to reproduce:
1. Connect to remote vm using HttpTunnel
2. Execute 'Disconnect' on client
3. Execute 'Connect'
After debugging this I found out that the the cause is 'sendingMessages' variable is preventing 'sendPendingMessages' function to be called. When the client does not send any messages, server thinks it's not active and disconnects it
I think 'sendingMessages' variable should be reset side by side with channel close (this is working for me now, but might be implemented elsewhere in the tunnel)
'outputMessageBuffer' is also been cleared here just for cleanup sake. Clearing just 'outputMessageBuffer' it is not enough for the client to respond after reconnect