Skip to content

Unknown delay when delivering chunked messages #235

@antulik

Description

@antulik

When using long polling I discovered there is a significant delay when message is written to client's IO

client.synchronize do
client << msg
end

and when the message is sent through the network. It varies but usually within the range 300-1000ms.

ActionController::Live in comparison sends data as soon as it is written (0ms delay)

Do you have any clues where that delay might come from?

I tried locally with Rails development and production mode on MacOS.

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