Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
M
mongoose
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
esp
mongoose
Commits
d8b4db37
Commit
d8b4db37
authored
Apr 09, 2014
by
Sergey Lyubka
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Squashed warnings
parent
6bb49c78
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
mongoose.c
mongoose.c
+3
-3
No files found.
mongoose.c
View file @
d8b4db37
...
@@ -3327,8 +3327,8 @@ static void handle_put(struct connection *conn, const char *path) {
...
@@ -3327,8 +3327,8 @@ static void handle_put(struct connection *conn, const char *path) {
static
void
forward_put_data
(
struct
connection
*
conn
)
{
static
void
forward_put_data
(
struct
connection
*
conn
)
{
struct
iobuf
*
io
=
&
conn
->
ns_conn
->
recv_iobuf
;
struct
iobuf
*
io
=
&
conn
->
ns_conn
->
recv_iobuf
;
int
n
=
conn
->
cl
<
io
->
len
?
conn
->
cl
:
io
->
len
;
// How many bytes t
o write
size_t
k
=
conn
->
cl
<
(
int64_t
)
io
->
len
?
conn
->
cl
:
io
->
len
;
// T
o write
n
=
write
(
conn
->
endpoint
.
fd
,
io
->
buf
,
n
);
// Write them!
int
n
=
write
(
conn
->
endpoint
.
fd
,
io
->
buf
,
k
);
// Write them!
if
(
n
>
0
)
{
if
(
n
>
0
)
{
iobuf_remove
(
io
,
n
);
iobuf_remove
(
io
,
n
);
conn
->
cl
-=
n
;
conn
->
cl
-=
n
;
...
@@ -4108,7 +4108,7 @@ static void process_response(struct connection *conn) {
...
@@ -4108,7 +4108,7 @@ static void process_response(struct connection *conn) {
if
(
conn
->
request_len
<
0
||
if
(
conn
->
request_len
<
0
||
(
conn
->
request_len
==
0
&&
io
->
len
>
MAX_REQUEST_SIZE
))
{
(
conn
->
request_len
==
0
&&
io
->
len
>
MAX_REQUEST_SIZE
))
{
call_http_client_handler
(
conn
);
call_http_client_handler
(
conn
);
}
else
if
(
io
->
len
>=
conn
->
cl
)
{
}
else
if
(
(
int64_t
)
io
->
len
>=
conn
->
cl
)
{
call_http_client_handler
(
conn
);
call_http_client_handler
(
conn
);
}
}
}
}
...
...
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