mirror of
https://github.com/curl/curl.git
synced 2026-08-25 08:23:31 +03:00
websockets: refactor decode chain
- use client writer stack for decoding frames - move websocket protocol handler to ws.c Closes #12713
This commit is contained in:
parent
49ca84144e
commit
3378d2bd09
5 changed files with 249 additions and 217 deletions
|
|
@ -296,13 +296,6 @@ static CURLcode chop_write(struct Curl_easy *data,
|
|||
if(!skip_body_write &&
|
||||
((type & CLIENTWRITE_BODY) ||
|
||||
((type & CLIENTWRITE_HEADER) && data->set.include_header))) {
|
||||
#ifdef USE_WEBSOCKETS
|
||||
if(conn->handler->protocol & (CURLPROTO_WS|CURLPROTO_WSS)) {
|
||||
writebody = Curl_ws_writecb;
|
||||
writebody_ptr = data;
|
||||
}
|
||||
else
|
||||
#endif
|
||||
writebody = data->set.fwrite_func;
|
||||
}
|
||||
if((type & (CLIENTWRITE_HEADER|CLIENTWRITE_INFO)) &&
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue