eidheim / Simple-Web-Server

A very simple, fast, multithreaded, platform independent HTTP and HTTPS server and client library implemented using C++11 and Boost.Asio. Created to be an easy way to make REST resources available from C++ applications.
MIT License
2.62k stars 755 forks source link

Added new syncsend function #145

Closed codyghind closed 7 years ago

codyghind commented 7 years ago

A new function added, that uses the boost asio write function in order to synchronously send parts of a longer message.

eidheim commented 7 years ago

One cannot combine async and sync asio operations. Also, a sync operation would block the handler calling this function, potentially causing other requests to be delayed until the sync operation is finished.