(websocket client) better error propagation when errors are detected while sending data + (ws send) detect failures to send big files, terminate in those cases and report error (troubleshooting #140)

This commit is contained in:
Benjamin Sergeant
2020-01-06 14:34:09 -08:00
parent c62ad5f466
commit a5bc39be55
6 changed files with 844 additions and 20 deletions

View File

@ -244,13 +244,13 @@ namespace ix
bool remote);
bool flushSendBuffer();
void sendOnSocket();
bool sendOnSocket();
WebSocketSendInfo sendData(wsheader_type::opcode_type type,
const std::string& message,
bool compress,
const OnProgressCallback& onProgressCallback = nullptr);
void sendFragment(wsheader_type::opcode_type type,
bool sendFragment(wsheader_type::opcode_type type,
bool fin,
std::string::const_iterator begin,
std::string::const_iterator end,