Skip to content

Commit

Permalink
Update ops/pebble.py
Browse files Browse the repository at this point in the history
Co-authored-by: Tony Meyer <[email protected]>
  • Loading branch information
benhoyt and tonyandrewmeyer authored Jun 6, 2024
1 parent 9225fc1 commit 108a137
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ops/pebble.py
Original file line number Diff line number Diff line change
Expand Up @@ -2833,7 +2833,7 @@ def _cancel_stdin():
def _connect_websocket(self, task_id: str, websocket_id: str) -> '_WebSocket':
sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM)
# Set socket timeout to a short timeout during connection phase, in
# case Pebble side times out (5s), so this side doesn't hang. See:
# case the Pebble side times out (5s), so this side doesn't hang. See:
# https://github.com/canonical/operator/issues/1246
sock.settimeout(self.timeout)
sock.connect(self.socket_path)
Expand Down

0 comments on commit 108a137

Please sign in to comment.