Skip to content

Dial - Context with timeout #11

@estutzenberger

Description

@estutzenberger

If I call the dial function with a context that times out, this timeout does not appear to be applied within the Dial function. The Dial function in hci.go relies on a dialerTmo struct field. Is there a proper way to time out a connect request?

If not, then I propose the timeout be pulled via the Context Deadline function. This should probably override the timeout specified by dialerTmo and then set it back upon exiting the function.

Thoughts? Perhaps I missed something elsewhere in the code. I'm happy to made the adjustments and file a PR.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions