Skip to content

GitLab

  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • D dbus
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 246
    • Issues 246
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 33
    • Merge requests 33
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • dbus
  • dbus
  • Issues
  • #35

Closed
Open
Created Jan 18, 2011 by Bugzilla Migration User@bugzilla-migration

[PATCH] Allow to setup connect timeout for TCP transport

Submitted by Pavel Strashkin

Assigned to D-Bus Maintainers

Link to original bug (#33234)

Description

There is no way to setup connect timeout when you're trying to connect to dbus via TCP. For an example, if you have the following connection string "tcp:host=A,port=B", and host "A" is unavailable by some reason then your client will get in stuck. When it come back or when ETIMEDOUT error happens depends on OS. Get in stuck is a bad thing so there has to be a way to configure connect timeout via "timeout" keyword in connection string. The value is in miliseconds. Default timeout may be 60s. Attached patch introduces such feature so it's possible to use the following connection string: "tcp:host=A,port=B,timeout=5000" (5s timeout). I believe that it's a very helpfull feature. I'm sorry that my patch is for 1.2.24, but if everything is clear (logic, code, ...) then i'll backport it to master branch.

Version: 1.5

Assignee
Assign to
Time tracking