mirror of
https://github.com/curl/curl.git
synced 2026-08-26 01:53:31 +03:00
ws: corrected curlws_cont to reflect its documented purpose
Verified in test 2311 Closes #16512
This commit is contained in:
parent
a66ede5309
commit
fa3d1e7d43
6 changed files with 193 additions and 2 deletions
|
|
@ -257,7 +257,7 @@ test2100 \
|
|||
test2200 test2201 test2202 test2203 test2204 test2205 \
|
||||
\
|
||||
test2300 test2301 test2302 test2303 test2304 test2305 test2306 test2307 \
|
||||
test2308 test2309 test2310 \
|
||||
test2308 test2309 test2310 test2311 \
|
||||
\
|
||||
test2400 test2401 test2402 test2403 test2404 test2405 test2406 \
|
||||
\
|
||||
|
|
|
|||
59
tests/data/test2311
Normal file
59
tests/data/test2311
Normal file
|
|
@ -0,0 +1,59 @@
|
|||
<testcase>
|
||||
<info>
|
||||
<keywords>
|
||||
WebSockets
|
||||
</keywords>
|
||||
</info>
|
||||
|
||||
#
|
||||
# Sends three 4097 bytes TEXT frames, as one single message
|
||||
<reply>
|
||||
<data nocheck="yes">
|
||||
HTTP/1.1 101 Switching to WebSockets
|
||||
Server: test-server/fake
|
||||
Upgrade: websocket
|
||||
Connection: Upgrade
|
||||
Something: else
|
||||
Sec-WebSocket-Accept: HkPsVga7+8LuxM4RGQ5p9tZHeYs=
|
||||
|
||||
%hex[%01%7e%10%01]hex%%repeat[256 x helothisisdaniel]%
|
||||
%hex[%01%7e%10%01]hex%%repeat[256 x helothisisdaniel]%
|
||||
%hex[%81%7e%10%01]hex%%repeat[256 x helothisisdaniel]%
|
||||
</data>
|
||||
# allow upgrade
|
||||
<servercmd>
|
||||
upgrade
|
||||
</servercmd>
|
||||
</reply>
|
||||
|
||||
#
|
||||
# Client-side
|
||||
<client>
|
||||
# require debug for the forced CURL_ENTROPY
|
||||
<features>
|
||||
Debug
|
||||
ws
|
||||
</features>
|
||||
<server>
|
||||
http
|
||||
</server>
|
||||
<name>
|
||||
WebSocket curl_ws_recv() loop reading three larger frames
|
||||
</name>
|
||||
<tool>
|
||||
lib%TESTNUMBER
|
||||
</tool>
|
||||
<command>
|
||||
ws://%HOSTIP:%HTTPPORT/%TESTNUMBER %LOGDIR/save%TESTNUMBER
|
||||
</command>
|
||||
</client>
|
||||
|
||||
#
|
||||
<verify>
|
||||
<file name="%LOGDIR/save%TESTNUMBER" mode="text">
|
||||
%repeat[256 x helothisisdaniel]%
|
||||
%repeat[256 x helothisisdaniel]%
|
||||
%repeat[256 x helothisisdaniel]%
|
||||
</file>
|
||||
</verify>
|
||||
</testcase>
|
||||
Loading…
Add table
Add a link
Reference in a new issue