Skip to content

Document how to disable TCP_NODELAY (nagle) and enable quickack #159

@robsmith11

Description

@robsmith11

It took a bit of digging for me to figure how to do this, and I would think that many users of websockets would want to be able to adjust the tcp socket options.

For example, for a wss connection:

WebSockets.open("wss://uri") do ws
 Sockets.naggle(ws.socket.bio, false)
 Sockets.quickack(ws.socket.bio, true)
 ...
end

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