Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
nghttp2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Libraries
nghttp2
Commits
93593a76
Commit
93593a76
authored
May 11, 2012
by
Tatsuhiro Tsujikawa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
spdylay_session_pack_data() now returns error code as specified in the doc.
parent
ef2bd10d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
+6
-5
lib/spdylay_session.c
lib/spdylay_session.c
+6
-5
No files found.
lib/spdylay_session.c
View file @
93593a76
...
...
@@ -1396,10 +1396,10 @@ static int spdylay_session_after_frame_sent(spdylay_session *session)
session
->
aob
.
item
=
NULL
;
spdylay_active_outbound_item_reset
(
&
session
->
aob
);
}
else
if
(
r
<
0
)
{
/*
We don't return other error code other than
SPDYLAY_ERR_CALLBACK_FAILURE
here.
*/
/*
In this context, r is either SPDYLAY_ERR_NOMEM or
SPDYLAY_ERR_CALLBACK_FAILURE */
spdylay_active_outbound_item_reset
(
&
session
->
aob
);
return
SPDYLAY_ERR_CALLBACK_FAILURE
;
return
r
;
}
else
{
session
->
aob
.
framebuflen
=
r
;
session
->
aob
.
framebufoff
=
0
;
...
...
@@ -2606,9 +2606,10 @@ ssize_t spdylay_session_pack_data(spdylay_session *session,
r
=
frame
->
data_prd
.
read_callback
(
session
,
frame
->
stream_id
,
(
*
buf_ptr
)
+
8
,
datamax
,
&
eof
,
&
frame
->
data_prd
.
source
,
session
->
user_data
);
if
(
r
<
0
)
{
if
(
r
==
SPDYLAY_ERR_DEFERRED
)
{
return
r
;
}
else
if
(
datamax
<
(
size_t
)
r
)
{
}
else
if
(
r
<
0
||
datamax
<
(
size_t
)
r
)
{
/* This is the error code when callback is failed. */
return
SPDYLAY_ERR_CALLBACK_FAILURE
;
}
memset
(
*
buf_ptr
,
0
,
SPDYLAY_HEAD_LEN
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment