eclipse-paho / eclipse-paho/paho.mqtt.python

Customizable Connect Timeout

Open
#621 2 comments 1 reaction 0 assignees View on GitHub
Status: Available Type: Enhancement
Dominant language
Python
Stars
2.4k
Forks
742
Avg merge
12d 48m
Merged PRs (30d)
1

Description

It seems as though the socket timeout for establishing a connection is set to 5 seconds with no way of changing it, due to there being no way to set the `._connect_timeout` attribute without accessing the convention-private attribute itself.

Is there a particular reason why this is this way? We have a requirement of supporting up to 60 seconds to establish a connection rather than just the 5 currently allowed.

I would be willing to implement an API to allow for this customization if necessary.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.