client/tcpclient.js
function dataListener(data) {
		if(clientDestroyed) return
		
		try{
			//console.log('client got data: ' + data.length)
			deser(data);
		}catch(e){
			console.log(e.stack)
			console.log('WARNING: deserialization error: ' + (''+e) + '\n' + e.stack)
			console.log(new Error().stack)
			client.removeListener('data', dataListener)
			client.destroy()
			clientDestroyed = true
			//clearInterval(flushIntervalHandle)
			clearFlushFunction(doFlush)
		}
	}
function dataListener(data) {
		if(clientDestroyed) return
		
		try{
			//console.log('client got data: ' + data.length)
			deser(data);
		}catch(e){
			console.log(e.stack)
			console.log('WARNING: deserialization error: ' + (''+e) + '\n' + e.stack)
			console.log(new Error().stack)
			client.removeListener('data', dataListener)
			client.destroy()
			clientDestroyed = true
			//clearInterval(flushIntervalHandle)
			clearFlushFunction(doFlush)
		}
	}
console.log('sent original connection') w.originalConnection({}) w.flush()