mirror of
https://github.com/ading2210/libcurl.js.git
synced 2025-05-12 22:10:01 -04:00
fix receiving large websocket frames
This commit is contained in:
parent
17d8c9fa8c
commit
b053ec8e77
5 changed files with 10 additions and 4 deletions
|
@ -18,7 +18,7 @@ struct WSResult* recv_from_websocket(CURL* http_handle, int buffer_size) {
|
|||
result->buffer = buffer;
|
||||
result->res = (int) res;
|
||||
result->closed = (ws_meta->flags & CURLWS_CLOSE);
|
||||
|
||||
result->fragment = ws_meta->bytesleft;
|
||||
return result;
|
||||
}
|
||||
|
||||
|
@ -54,4 +54,7 @@ int get_result_code (const struct WSResult* result) {
|
|||
}
|
||||
int get_result_closed (const struct WSResult* result) {
|
||||
return result->closed;
|
||||
}
|
||||
int get_result_fragment (const struct WSResult* result) {
|
||||
return result->fragment;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue