Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
TLMSP curl
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
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
CYBER - Cyber Security
TS 103 523 MSP
TLMSP
TLMSP curl
Commits
93f473c7
Commit
93f473c7
authored
11 years ago
by
Daniel Stenberg
Browse files
Options
Downloads
Patches
Plain Diff
http2: fix EWOULDBLOCK in recv_callback()
parent
a878cb30
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
lib/http2.c
+8
-4
8 additions, 4 deletions
lib/http2.c
with
8 additions
and
4 deletions
lib/http2.c
+
8
−
4
View file @
93f473c7
...
...
@@ -124,12 +124,16 @@ static ssize_t recv_callback(nghttp2_session *h2,
(
void
)
h2
;
(
void
)
flags
;
if
(
rc
)
{
failf
(
conn
->
data
,
"Failed receiving HTTP2 data"
);
if
(
CURLE_AGAIN
==
rc
)
{
infof
(
conn
->
data
,
"recv_callback() returns NGHTTP2_ERR_WOULDBLOCK
\n
"
);
return
NGHTTP2_ERR_WOULDBLOCK
;
}
else
if
(
rc
)
{
failf
(
conn
->
data
,
"Failed receiving HTTP2 data: %d"
,
rc
);
return
NGHTTP2_ERR_CALLBACK_FAILURE
;
}
if
(
!
nread
)
return
NGHTTP2_ERR_WOULDBLOCK
;
else
infof
(
conn
->
data
,
"recv_callback() returns %d to nghttp2
\n
"
,
nread
)
;
return
nread
;
}
...
...
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