Skip to content

Instantly share code, notes, and snippets.

@oberstet
Created January 11, 2019 09:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save oberstet/396325ebfbd4e08d1542dd278c5fb679 to your computer and use it in GitHub Desktop.
Save oberstet/396325ebfbd4e08d1542dd278c5fb679 to your computer and use it in GitHub Desktop.
(cpy372_1) oberstet@intel-nuci7:~/test3$ python test.py
2019-01-11T10:47:37+0100 using t.a.i.ClientService
2019-01-11T10:47:37+0100
[('logOctets', False, 'WampWebSocketClientFactory'),
('logFrames', False, 'WampWebSocketClientFactory'),
('trackTimings', False, 'WampWebSocketClientFactory'),
('utf8validateIncoming', True, 'WampWebSocketClientFactory'),
('applyMask', True, 'WampWebSocketClientFactory'),
('maxFramePayloadSize', 1048576, 'WampWebSocketClientFactory'),
('maxMessagePayloadSize', 1048576, 'WampWebSocketClientFactory'),
('autoFragmentSize', 65536, 'WampWebSocketClientFactory'),
('failByDrop', False, 'WampWebSocketClientFactory'),
('echoCloseCodeReason', False, 'WampWebSocketClientFactory'),
('openHandshakeTimeout', 2.5, 'WampWebSocketClientFactory'),
('closeHandshakeTimeout', 1, 'WampWebSocketClientFactory'),
('tcpNoDelay', True, 'WampWebSocketClientFactory'),
('autoPingInterval', 10.0, 'WampWebSocketClientFactory'),
('autoPingTimeout', 5.0, 'WampWebSocketClientFactory'),
('autoPingSize', 4, 'WampWebSocketClientFactory'),
('version', 18, 'WampWebSocketClientFactory'),
('acceptMaskedServerFrames', False, 'WampWebSocketClientFactory'),
('maskClientFrames', True, 'WampWebSocketClientFactory'),
('serverConnectionDropTimeout', 1, 'WampWebSocketClientFactory'),
('perMessageCompressionOffers',
[PerMessageDeflateOffer(accept_no_context_takeover = True, accept_max_window_bits = True, request_no_context_takeover = False, request_max_window_bits = 0)],
'WampWebSocketClientFactory'),
('perMessageCompressionAccept',
<function ApplicationRunner.run.<locals>.accept at 0x7fe6eca0dc80>,
'WampWebSocketClientFactory')]
2019-01-11T10:47:37+0100 connection to tcp4:127.0.0.1:8080 established
2019-01-11T10:47:37+0100 GET /ws HTTP/1.1
User-Agent: AutobahnPython/19.1.1
Host: localhost:8080
Upgrade: WebSocket
Connection: Upgrade
Pragma: no-cache
Cache-Control: no-cache
Sec-WebSocket-Key: U8naUQPg8ZQQknQX8qZvxg==
Sec-WebSocket-Protocol: wamp.2.json.batched,wamp.2.json
Sec-WebSocket-Extensions: permessage-deflate; client_no_context_takeover; client_max_window_bits
Sec-WebSocket-Version: 13
2019-01-11T10:47:37+0100 Connection made to tcp4:127.0.0.1:8080
2019-01-11T10:47:37+0100 received HTTP response:
b'HTTP/1.1 101 Switching Protocols\r\nServer: Crossbar\r\nUpgrade: WebSocket\r\nConnection: Upgrade\r\nSec-WebSocket-Protocol: wamp.2.json.batched\r\nSec-WebSocket-Accept: UBFc3FkWggxvBLyskmEjFEJNVVA=\r\n\r\n'
2019-01-11T10:47:37+0100 received HTTP status line in opening handshake : HTTP/1.1 101 Switching Protocols
2019-01-11T10:47:37+0100 received HTTP headers in opening handshake : {'server': 'Crossbar', 'upgrade': 'WebSocket', 'connection': 'Upgrade', 'sec-websocket-protocol': 'wamp.2.json.batched', 'sec-websocket-accept': 'UBFc3FkWggxvBLyskmEjFEJNVVA='}
2019-01-11T10:47:37+0100 openHandshakeTimeoutCall.cancel
2019-01-11T10:47:40+0100 WebSocketProtocol.onPing(payload=<4 bytes>)
2019-01-11T10:47:43+0100 WebSocketProtocol.onPing(payload=<4 bytes>)
2019-01-11T10:47:46+0100 WebSocketProtocol.onPing(payload=<4 bytes>)
2019-01-11T10:47:47+0100 Auto ping/pong: sending ping auto-ping/pong
2019-01-11T10:47:47+0100 Expecting ping in 5.0 seconds for auto-ping/pong
2019-01-11T10:47:47+0100 Auto ping/pong: received pending pong for auto-ping/pong
2019-01-11T10:47:47+0100 WebSocketProtocol.onPong(payload=<4 bytes>)
2019-01-11T10:47:49+0100 WebSocketProtocol.onPing(payload=<4 bytes>)
2019-01-11T10:47:52+0100 WebSocketProtocol.onPing(payload=<4 bytes>)
2019-01-11T10:47:55+0100 WebSocketProtocol.onPing(payload=<4 bytes>)
2019-01-11T10:47:57+0100 Auto ping/pong: sending ping auto-ping/pong
2019-01-11T10:47:57+0100 Expecting ping in 5.0 seconds for auto-ping/pong
2019-01-11T10:47:57+0100 Auto ping/pong: received pending pong for auto-ping/pong
2019-01-11T10:47:57+0100 WebSocketProtocol.onPong(payload=<4 bytes>)
2019-01-11T10:47:58+0100 WebSocketProtocol.onPing(payload=<4 bytes>)
2019-01-11T10:48:00+0100 Connection to/from tcp4:127.0.0.1:8080 was closed cleanly
2019-01-11T10:48:00+0100 _connectionLost: [Failure instance: Traceback (failure with no frames): <class 'twisted.internet.error.ConnectionDone'>: Connection was closed cleanly.
]
2019-01-11T10:48:00+0100 Auto ping/pong: canceling autoPingPendingCall upon lost connection
2019-01-11T10:48:00+0100 WAMP-over-WebSocket transport lost: wasClean=False, code=1006, reason="connection was closed uncleanly (peer dropped the TCP connection without previous WebSocket closing handshake)"
2019-01-11T10:48:00+0100 session closed with reason wamp.close.transport_lost [WAMP transport was lost without closing the session before]
2019-01-11T10:48:00+0100 Scheduling retry 1 to connect <twisted.internet.endpoints.TCP4ClientEndpoint object at 0x7fe6eca04d30> in 1.9373985415790052 seconds.
2019-01-11T10:48:02+0100 Scheduling retry 2 to connect <twisted.internet.endpoints.TCP4ClientEndpoint object at 0x7fe6eca04d30> in 3.027681394402137 seconds.
2019-01-11T10:48:05+0100 Scheduling retry 3 to connect <twisted.internet.endpoints.TCP4ClientEndpoint object at 0x7fe6eca04d30> in 3.85159128550296 seconds.
2019-01-11T10:48:09+0100 Scheduling retry 4 to connect <twisted.internet.endpoints.TCP4ClientEndpoint object at 0x7fe6eca04d30> in 5.237338967943967 seconds.
2019-01-11T10:48:14+0100
[('logOctets', False, 'WampWebSocketClientFactory'),
('logFrames', False, 'WampWebSocketClientFactory'),
('trackTimings', False, 'WampWebSocketClientFactory'),
('utf8validateIncoming', True, 'WampWebSocketClientFactory'),
('applyMask', True, 'WampWebSocketClientFactory'),
('maxFramePayloadSize', 1048576, 'WampWebSocketClientFactory'),
('maxMessagePayloadSize', 1048576, 'WampWebSocketClientFactory'),
('autoFragmentSize', 65536, 'WampWebSocketClientFactory'),
('failByDrop', False, 'WampWebSocketClientFactory'),
('echoCloseCodeReason', False, 'WampWebSocketClientFactory'),
('openHandshakeTimeout', 2.5, 'WampWebSocketClientFactory'),
('closeHandshakeTimeout', 1, 'WampWebSocketClientFactory'),
('tcpNoDelay', True, 'WampWebSocketClientFactory'),
('autoPingInterval', 10.0, 'WampWebSocketClientFactory'),
('autoPingTimeout', 5.0, 'WampWebSocketClientFactory'),
('autoPingSize', 4, 'WampWebSocketClientFactory'),
('version', 18, 'WampWebSocketClientFactory'),
('acceptMaskedServerFrames', False, 'WampWebSocketClientFactory'),
('maskClientFrames', True, 'WampWebSocketClientFactory'),
('serverConnectionDropTimeout', 1, 'WampWebSocketClientFactory'),
('perMessageCompressionOffers',
[PerMessageDeflateOffer(accept_no_context_takeover = True, accept_max_window_bits = True, request_no_context_takeover = False, request_max_window_bits = 0)],
'WampWebSocketClientFactory'),
('perMessageCompressionAccept',
<function ApplicationRunner.run.<locals>.accept at 0x7fe6eca0dc80>,
'WampWebSocketClientFactory')]
2019-01-11T10:48:14+0100 connection to tcp4:127.0.0.1:8080 established
2019-01-11T10:48:14+0100 GET /ws HTTP/1.1
User-Agent: AutobahnPython/19.1.1
Host: localhost:8080
Upgrade: WebSocket
Connection: Upgrade
Pragma: no-cache
Cache-Control: no-cache
Sec-WebSocket-Key: fO4oarCpc5nv7spM3EI28w==
Sec-WebSocket-Protocol: wamp.2.json.batched,wamp.2.json
Sec-WebSocket-Extensions: permessage-deflate; client_no_context_takeover; client_max_window_bits
Sec-WebSocket-Version: 13
2019-01-11T10:48:14+0100 Connection made to tcp4:127.0.0.1:8080
2019-01-11T10:48:14+0100 received HTTP response:
b'HTTP/1.1 101 Switching Protocols\r\nServer: Crossbar\r\nUpgrade: WebSocket\r\nConnection: Upgrade\r\nSec-WebSocket-Protocol: wamp.2.json.batched\r\nSec-WebSocket-Accept: 5UesXg40vW/z+URoOa6RxtGi7g8=\r\n\r\n'
2019-01-11T10:48:14+0100 received HTTP status line in opening handshake : HTTP/1.1 101 Switching Protocols
2019-01-11T10:48:14+0100 received HTTP headers in opening handshake : {'server': 'Crossbar', 'upgrade': 'WebSocket', 'connection': 'Upgrade', 'sec-websocket-protocol': 'wamp.2.json.batched', 'sec-websocket-accept': '5UesXg40vW/z+URoOa6RxtGi7g8='}
2019-01-11T10:48:14+0100 openHandshakeTimeoutCall.cancel
2019-01-11T10:48:17+0100 WebSocketProtocol.onPing(payload=<4 bytes>)
2019-01-11T10:48:20+0100 WebSocketProtocol.onPing(payload=<4 bytes>)
2019-01-11T10:48:23+0100 WebSocketProtocol.onPing(payload=<4 bytes>)
2019-01-11T10:48:24+0100 Auto ping/pong: sending ping auto-ping/pong
2019-01-11T10:48:24+0100 Expecting ping in 5.0 seconds for auto-ping/pong
2019-01-11T10:48:24+0100 Auto ping/pong: received pending pong for auto-ping/pong
2019-01-11T10:48:24+0100 WebSocketProtocol.onPong(payload=<4 bytes>)
2019-01-11T10:48:25+0100 Connection to/from tcp4:127.0.0.1:8080 was closed cleanly
2019-01-11T10:48:25+0100 _connectionLost: [Failure instance: Traceback (failure with no frames): <class 'twisted.internet.error.ConnectionDone'>: Connection was closed cleanly.
]
2019-01-11T10:48:25+0100 Auto ping/pong: canceling autoPingPendingCall upon lost connection
2019-01-11T10:48:25+0100 WAMP-over-WebSocket transport lost: wasClean=False, code=1006, reason="connection was closed uncleanly (peer dropped the TCP connection without previous WebSocket closing handshake)"
2019-01-11T10:48:25+0100 session closed with reason wamp.close.transport_lost [WAMP transport was lost without closing the session before]
2019-01-11T10:48:25+0100 Scheduling retry 1 to connect <twisted.internet.endpoints.TCP4ClientEndpoint object at 0x7fe6eca04d30> in 2.3991236722501217 seconds.
2019-01-11T10:48:28+0100 Scheduling retry 2 to connect <twisted.internet.endpoints.TCP4ClientEndpoint object at 0x7fe6eca04d30> in 3.0233048497592865 seconds.
2019-01-11T10:48:31+0100 Scheduling retry 3 to connect <twisted.internet.endpoints.TCP4ClientEndpoint object at 0x7fe6eca04d30> in 3.7014942005691562 seconds.
2019-01-11T10:48:34+0100
[('logOctets', False, 'WampWebSocketClientFactory'),
('logFrames', False, 'WampWebSocketClientFactory'),
('trackTimings', False, 'WampWebSocketClientFactory'),
('utf8validateIncoming', True, 'WampWebSocketClientFactory'),
('applyMask', True, 'WampWebSocketClientFactory'),
('maxFramePayloadSize', 1048576, 'WampWebSocketClientFactory'),
('maxMessagePayloadSize', 1048576, 'WampWebSocketClientFactory'),
('autoFragmentSize', 65536, 'WampWebSocketClientFactory'),
('failByDrop', False, 'WampWebSocketClientFactory'),
('echoCloseCodeReason', False, 'WampWebSocketClientFactory'),
('openHandshakeTimeout', 2.5, 'WampWebSocketClientFactory'),
('closeHandshakeTimeout', 1, 'WampWebSocketClientFactory'),
('tcpNoDelay', True, 'WampWebSocketClientFactory'),
('autoPingInterval', 10.0, 'WampWebSocketClientFactory'),
('autoPingTimeout', 5.0, 'WampWebSocketClientFactory'),
('autoPingSize', 4, 'WampWebSocketClientFactory'),
('version', 18, 'WampWebSocketClientFactory'),
('acceptMaskedServerFrames', False, 'WampWebSocketClientFactory'),
('maskClientFrames', True, 'WampWebSocketClientFactory'),
('serverConnectionDropTimeout', 1, 'WampWebSocketClientFactory'),
('perMessageCompressionOffers',
[PerMessageDeflateOffer(accept_no_context_takeover = True, accept_max_window_bits = True, request_no_context_takeover = False, request_max_window_bits = 0)],
'WampWebSocketClientFactory'),
('perMessageCompressionAccept',
<function ApplicationRunner.run.<locals>.accept at 0x7fe6eca0dc80>,
'WampWebSocketClientFactory')]
2019-01-11T10:48:34+0100 connection to tcp4:127.0.0.1:8080 established
2019-01-11T10:48:34+0100 GET /ws HTTP/1.1
User-Agent: AutobahnPython/19.1.1
Host: localhost:8080
Upgrade: WebSocket
Connection: Upgrade
Pragma: no-cache
Cache-Control: no-cache
Sec-WebSocket-Key: 3aJJpIkG4O1/5wV8XZQOiA==
Sec-WebSocket-Protocol: wamp.2.json.batched,wamp.2.json
Sec-WebSocket-Extensions: permessage-deflate; client_no_context_takeover; client_max_window_bits
Sec-WebSocket-Version: 13
2019-01-11T10:48:34+0100 Connection made to tcp4:127.0.0.1:8080
2019-01-11T10:48:34+0100 received HTTP response:
b'HTTP/1.1 101 Switching Protocols\r\nServer: Crossbar\r\nUpgrade: WebSocket\r\nConnection: Upgrade\r\nSec-WebSocket-Protocol: wamp.2.json.batched\r\nSec-WebSocket-Accept: 2V8BpFCkvqqmX8s1naO1RFTnlSc=\r\n\r\n'
2019-01-11T10:48:34+0100 received HTTP status line in opening handshake : HTTP/1.1 101 Switching Protocols
2019-01-11T10:48:34+0100 received HTTP headers in opening handshake : {'server': 'Crossbar', 'upgrade': 'WebSocket', 'connection': 'Upgrade', 'sec-websocket-protocol': 'wamp.2.json.batched', 'sec-websocket-accept': '2V8BpFCkvqqmX8s1naO1RFTnlSc='}
2019-01-11T10:48:34+0100 openHandshakeTimeoutCall.cancel
2019-01-11T10:48:37+0100 WebSocketProtocol.onPing(payload=<4 bytes>)
2019-01-11T10:48:40+0100 WebSocketProtocol.onPing(payload=<4 bytes>)
2019-01-11T10:48:43+0100 WebSocketProtocol.onPing(payload=<4 bytes>)
2019-01-11T10:48:44+0100 Auto ping/pong: sending ping auto-ping/pong
2019-01-11T10:48:44+0100 Expecting ping in 5.0 seconds for auto-ping/pong
2019-01-11T10:48:44+0100 Auto ping/pong: received pending pong for auto-ping/pong
2019-01-11T10:48:44+0100 WebSocketProtocol.onPong(payload=<4 bytes>)
^C2019-01-11T10:48:45+0100 Received SIGINT, shutting down.
2019-01-11T10:48:45+0100 Connection to/from tcp4:127.0.0.1:8080 was lost in a non-clean fashion: Connection to the other side was lost in a non-clean fashion: Connection lost.
2019-01-11T10:48:45+0100 _connectionLost: [Failure instance: Traceback (failure with no frames): <class 'twisted.internet.error.ConnectionLost'>: Connection to the other side was lost in a non-clean fashion: Connection lost.
]
2019-01-11T10:48:45+0100 Auto ping/pong: canceling autoPingPendingCall upon lost connection
2019-01-11T10:48:45+0100 WAMP-over-WebSocket transport lost: wasClean=False, code=1006, reason="connection was closed uncleanly (peer dropped the TCP connection without previous WebSocket closing handshake)"
2019-01-11T10:48:45+0100 session closed with reason wamp.close.transport_lost [WAMP transport was lost without closing the session before]
2019-01-11T10:48:45+0100 Scheduling retry 1 to connect <twisted.internet.endpoints.TCP4ClientEndpoint object at 0x7fe6eca04d30> in 2.4650047170105207 seconds.
2019-01-11T10:48:45+0100 Main loop terminated.
(cpy372_1) oberstet@intel-nuci7:~/test3$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment