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
123572a9
You need to sign in or sign up before continuing.
Commit
123572a9
authored
8 years ago
by
Andy Green
Browse files
Options
Downloads
Patches
Plain Diff
windows: align choked trunc checking with unix
parent
d8b7e892
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
lib/lws-plat-win.c
+4
-0
4 additions, 0 deletions
lib/lws-plat-win.c
with
4 additions
and
0 deletions
lib/lws-plat-win.c
+
4
−
0
View file @
123572a9
...
@@ -106,6 +106,10 @@ LWS_VISIBLE int lws_get_random(struct lws_context *context,
...
@@ -106,6 +106,10 @@ LWS_VISIBLE int lws_get_random(struct lws_context *context,
LWS_VISIBLE
int
lws_send_pipe_choked
(
struct
lws
*
wsi
)
LWS_VISIBLE
int
lws_send_pipe_choked
(
struct
lws
*
wsi
)
{
{
/* treat the fact we got a truncated send pending as if we're choked */
if
(
wsi
->
trunc_len
)
return
1
;
return
(
int
)
wsi
->
sock_send_blocking
;
return
(
int
)
wsi
->
sock_send_blocking
;
}
}
...
...
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