Skip to content

It is now possible to specify a timeout when opening a TCPSocket.#163

Merged
njh merged 6 commits intonjh:mainfrom
hiroeorz:connect_timeout
Sep 28, 2025
Merged

It is now possible to specify a timeout when opening a TCPSocket.#163
njh merged 6 commits intonjh:mainfrom
hiroeorz:connect_timeout

Conversation

@hiroeorz
Copy link
Contributor

By specifying as follows, you can now specify the timeout time in seconds when MQTTClient opens a TCPSocket.

client = MQTT::Client.connect(
  :host => 'myserver.example.com',
  :connect_timeout => 15
)

The default timeout period is 30 seconds.

@njh njh closed this Sep 28, 2025
@njh
Copy link
Owner

njh commented Sep 28, 2025

Re-opening to trigger GitHub action checks (hopefully!)

@njh njh reopened this Sep 28, 2025
@njh njh merged commit ffe862b into njh:main Sep 28, 2025
11 checks passed
ccutrer added a commit to ccutrer/ruby-mqtt that referenced this pull request Jan 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants