emscripten-core / emscripten-core/emscripten
how can I set TCP_NODELAY using asio ?
Open
- 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
Assessment
This issue has not been assessed yet.