Skip to content

Commit 9e089f9

Browse files
committed
fix: Set a socket timeout for stomp connection
With a new version of python there seems to be a race condition when a connection is not establish properly. After couple of debugging iteration it seems the connection is to fast and is never establish. Adding a timeout to a connection helped locally. Signed-off-by: Ales Raszka <[email protected]>
1 parent 957a5e8 commit 9e089f9

File tree

1 file changed

+1
-0
lines changed
  • operator-pipeline-images/operatorcert

1 file changed

+1
-0
lines changed

operator-pipeline-images/operatorcert/umb.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ def __init__( # pylint: disable=too-many-arguments,too-many-positional-argument
3636
keepalive=True,
3737
host_and_ports=self.hostnames,
3838
reconnect_attempts_max=5,
39+
timeout=10,
3940
heartbeats=(8000, 0),
4041
)
4142
self.connection.set_ssl(

0 commit comments

Comments
 (0)