Public Member Functions | |
def | __init__ (self, proto) |
def | pauseProducing (self) |
def | relay (self, message, compression="none") |
def | resumeProducing (self) |
def | stopProducing (self) |
Private Attributes | |
_finished | |
_proto | |
_valve | |
Allows the Autobahn transport to pause outgoing messages from rosbridge. The purpose of this valve is to connect backpressure from the WebSocket client back to the rosbridge protocol, which depends on backpressure for queueing. Without this flow control, rosbridge will happily keep writing messages to the WebSocket until the system runs out of memory. This valve is closed and opened automatically by the Twisted TCP server. In practice, Twisted should only close the valve when its userspace write buffer is full and it should only open the valve when that buffer is empty. When the valve is closed, the rosbridge protocol instance's outgoing writes must block until the valve is opened.
Definition at line 115 of file autobahn_websocket.py.
def rosbridge_server.autobahn_websocket.OutgoingValve.__init__ | ( | self, | |
proto | |||
) |
Definition at line 130 of file autobahn_websocket.py.
def rosbridge_server.autobahn_websocket.OutgoingValve.pauseProducing | ( | self | ) |
Definition at line 142 of file autobahn_websocket.py.
def rosbridge_server.autobahn_websocket.OutgoingValve.relay | ( | self, | |
message, | |||
compression = "none" |
|||
) |
Definition at line 136 of file autobahn_websocket.py.
def rosbridge_server.autobahn_websocket.OutgoingValve.resumeProducing | ( | self | ) |
Definition at line 146 of file autobahn_websocket.py.
def rosbridge_server.autobahn_websocket.OutgoingValve.stopProducing | ( | self | ) |
Definition at line 149 of file autobahn_websocket.py.
|
private |
Definition at line 133 of file autobahn_websocket.py.
|
private |
Definition at line 131 of file autobahn_websocket.py.
|
private |
Definition at line 132 of file autobahn_websocket.py.