Skip to content

SetTimeout() may do nothing? #1

@arudyavsky

Description

@arudyavsky

To reproduce:

t, err := telnet.Dial(...)
t.SetTimeout(time.Duration(100) * time.Millisecond)

After this examine t and timeout has old default value = 5s. The telnet.DialTimeout(...) work propertly.
May be fix:

// SetTimeout changes default or start timeout for all interactions
func (t *Telnet) SetTimeout(timeout time.Duration) {
	t.timeout = timeout
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions