emscripten-core / emscripten-core/emscripten

how can I set TCP_NODELAY using asio ?

Open
#17,010 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
27.6k
Forks
3.6k
Avg merge
1d 1h
Merged PRs (30d)
105

Description

So basically I have the same issue here : https://stackoverflow.com/questions/19560163/sending-filler-data-on-websocket

I have an emscripten project and I use the emscripten socket emulation and I need to set the TCP_NODELAY option to disable Nagle's algorithm on the websocket.
is there a compile option to set this socket flag ?

because I have tried the following and it crashed on the browser but worked fine on linux:

```
asio::ip::tcp::no_delay option(true);
socket.set_option(option);
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.