Skip to content

Appropriate usage of read and write deadlines #473

Closed
@ldelossa

Description

@ldelossa

Hello,

I did a bit of digging and see that time.Duration is not possible when setting read and write timeouts. That being said, what is the appropriate usage of deadline?

If I have a WS connection where I only read an initial "init" message, and then never read again, do I just let that read timeout die?

Is gorilla package setting a default timeout? My concern is that my server be vulnerable to idle websocket attacks if there's no read deadline in place.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions