Ole Christian Eidheim
Ole Christian Eidheim
With 2 threads in config, 2 callbacks, any callbacks that is, similar or not, can be executed simultaneously, so if you use shared resources, keep in mind to protect them...
I see you point now, and yes my last attempt is flawed. I'll edit it.
If I remember correctly: yes. But check the boost doc to be sure.
I meant asio doc:)
As I understand it, you only copy the pointers to the data through: ```c++ new_stream
Actually, `new_stream
Just letting you guys know that I have not forgotten this PR. Though I'm contemplating if server sent events should be supported at all, since WebSocket is better suited for...
@z0u Your point that multiple `send` calls should be supported, even without SSE, is good.
I finally got around to completing the multiple successive sends in https://github.com/eidheim/Simple-Web-Server/commit/987983a396830605473a0ef125e611b854899e25. I put this in the https://github.com/eidheim/Simple-Web-Server/tree/sse branch. This solves the issue of interleaving writes (async_write calls multiple async_write_some)....
Sorry for the late response. I take it you use the async request functions, and then the handlers will be run on the same thread that the client's io_service event...