console.log('sent original connection') w.originalConnection({}) w.flush()
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)
		}
	}