Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
libwebsockets
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
Fork
libwebsockets
Commits
dbfbbb41
Commit
dbfbbb41
authored
9 years ago
by
Andy Green
Browse files
Options
Downloads
Patches
Plain Diff
user code must explicitly complete http transaction
Signed-off-by:
Andy Green
<
andy.green@linaro.org
>
parent
5c0bcf49
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
changelog
+11
-0
11 additions, 0 deletions
changelog
lib/handshake.c
+1
-1
1 addition, 1 deletion
lib/handshake.c
with
12 additions
and
1 deletion
changelog
+
11
−
0
View file @
dbfbbb41
...
@@ -17,6 +17,17 @@ known to affect anything until after it was fixed
...
@@ -17,6 +17,17 @@ known to affect anything until after it was fixed
requests callback on writeable for the socket it will busywait until the
requests callback on writeable for the socket it will busywait until the
socket closes
socket closes
5) MAJOR Although the test server has done it for a few versions already, it
is now required for the user code to explicitly call
if (lws_http_transaction_completed(wsi))
return -1;
when it finishes replying to a transaction in http. Previously the library
did it for you, but that disallowed large, long transfers with multiple
trips around the event loop (and cgi...).
Changes
Changes
-------
-------
...
...
This diff is collapsed.
Click to expand it.
lib/handshake.c
+
1
−
1
View file @
dbfbbb41
...
@@ -130,7 +130,7 @@ lws_read(struct lws *wsi, unsigned char *buf, size_t len)
...
@@ -130,7 +130,7 @@ lws_read(struct lws *wsi, unsigned char *buf, size_t len)
switch
(
wsi
->
state
)
{
switch
(
wsi
->
state
)
{
case
LWSS_HTTP
:
case
LWSS_HTTP
:
case
LWSS_HTTP_HEADERS
:
case
LWSS_HTTP_HEADERS
:
goto
http_complete
;
goto
read_ok
;
case
LWSS_HTTP_ISSUING_FILE
:
case
LWSS_HTTP_ISSUING_FILE
:
goto
read_ok
;
goto
read_ok
;
case
LWSS_HTTP_BODY
:
case
LWSS_HTTP_BODY
:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment