Skip to content

server: with TLS, TCP user timeout is not set on the underlying connection #5646

Closed
@costinm

Description

if err = syscall.SetTCPUserTimeout(conn, kp.Timeout); err != nil {

I was looking at the write code - for net.Conn this works as expected, but if TLS is used conn will be tls.Conn so the line will
not set a timeout. I would guess rawconn should be passed ?

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions