mirror of
https://github.com/warmcat/libwebsockets.git
synced 2025-03-09 00:00:04 +01:00
attack.sh fixes
This commit is contained in:
parent
93bc409ca1
commit
673e3aa549
2 changed files with 10 additions and 1 deletions
|
@ -1930,6 +1930,9 @@ lws_http_transaction_completed(struct lws *wsi)
|
|||
/* If we're (re)starting on headers, need other implied init */
|
||||
if (wsi->ah)
|
||||
wsi->ah->ues = URIES_IDLE;
|
||||
|
||||
if (wsi->mode == LWSCM_HTTP_SERVING_ACCEPTED)
|
||||
wsi->mode = LWSCM_HTTP_SERVING;
|
||||
} else
|
||||
if (wsi->preamble_rx)
|
||||
if (lws_header_table_attach(wsi, 0))
|
||||
|
@ -2285,6 +2288,9 @@ lws_server_socket_service(struct lws_context *context, struct lws *wsi,
|
|||
break;
|
||||
}
|
||||
|
||||
if (wsi->state == LWSS_HTTP_DEFERRING_ACTION)
|
||||
goto try_pollout;
|
||||
|
||||
/* any incoming data ready? */
|
||||
|
||||
if (!(pollfd->revents & pollfd->events & LWS_POLLIN))
|
||||
|
|
|
@ -781,10 +781,13 @@ kill -2 $CPID
|
|||
|
||||
# coverage...
|
||||
# run the test client against mirror for one period and exit
|
||||
killall libwebsockets-test-server 2>/dev/null
|
||||
libwebsockets-test-server -s 2>> $LOG &
|
||||
CPID=$!
|
||||
|
||||
sleep 1s
|
||||
libwebsockets-test-client 127.0.0.1 -s -O
|
||||
|
||||
# https://github.com/curl/curl/issues/1587
|
||||
curl -v -F text=hello -F send=SEND -F upload=@../README.md https://127.0.0.1:7681/formtest -k
|
||||
|
||||
kill -2 $CPID
|
||||
|
|
Loading…
Add table
Reference in a new issue