unexpected hangup
This commit is contained in:
		
							parent
							
								
									9b4e9577b3
								
							
						
					
					
						commit
						e7b7b4cd6b
					
				|  | @ -43,6 +43,9 @@ class RelayEchoClient(WebSocketClientProtocol): | |||
|             self.factory.ready.callback(None) | ||||
|         else: | ||||
|             self._received += data | ||||
|             if False: | ||||
|                 # test abrupt hangup from receiving side | ||||
|                 self.transport.loseConnection() | ||||
| 
 | ||||
|     def onClose(self, wasClean, code, reason): | ||||
|         print(">onClose", wasClean, code, reason) | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue
	
	Block a user