diff options
author | Andrey Uzunov <andrey.uzunov@gmail.com> | 2013-07-17 10:27:46 +0000 |
---|---|---|
committer | Andrey Uzunov <andrey.uzunov@gmail.com> | 2013-07-17 10:27:46 +0000 |
commit | 4231889ce35dd86cbd6a3872b3fcba053f1fd65c (patch) | |
tree | ba10745bf2317110b8b46ba2e3f3df27cd23146b | |
parent | 282386193c63b9c02d7e7201d06b7fc19c2708d4 (diff) | |
download | libmicrohttpd-4231889ce35dd86cbd6a3872b3fcba053f1fd65c.tar.gz libmicrohttpd-4231889ce35dd86cbd6a3872b3fcba053f1fd65c.zip |
spdy: TCP_CORK flush only when needed, fix
-rw-r--r-- | src/microspdy/io_raw.c | 2 | ||||
-rw-r--r-- | src/microspdy/session.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/microspdy/io_raw.c b/src/microspdy/io_raw.c index 5df2e0e8..58127e84 100644 --- a/src/microspdy/io_raw.c +++ b/src/microspdy/io_raw.c | |||
@@ -176,7 +176,7 @@ SPDYF_raw_before_write(struct SPDY_Session *session) | |||
176 | int | 176 | int |
177 | SPDYF_raw_after_write(struct SPDY_Session *session, int was_written) | 177 | SPDYF_raw_after_write(struct SPDY_Session *session, int was_written) |
178 | { | 178 | { |
179 | if(0 == (SPDY_DAEMON_FLAG_NO_DELAY & session->daemon->flags)) | 179 | if(SPDY_YES == was_written && 0 == (SPDY_DAEMON_FLAG_NO_DELAY & session->daemon->flags)) |
180 | { | 180 | { |
181 | int val = 0; | 181 | int val = 0; |
182 | int ret; | 182 | int ret; |
diff --git a/src/microspdy/session.c b/src/microspdy/session.c index 2a22f7f2..6374201d 100644 --- a/src/microspdy/session.c +++ b/src/microspdy/session.c | |||
@@ -1025,7 +1025,7 @@ SPDYF_session_write (struct SPDY_Session *session, bool only_one_frame) | |||
1025 | session->status = SPDY_SESSION_STATUS_CLOSING; | 1025 | session->status = SPDY_SESSION_STATUS_CLOSING; |
1026 | 1026 | ||
1027 | //return i>0 ? SPDY_YES : SPDY_NO; | 1027 | //return i>0 ? SPDY_YES : SPDY_NO; |
1028 | return session->fio_after_write(session, i>0); | 1028 | return session->fio_after_write(session, i>0 ? SPDY_YES : SPDY_NO); |
1029 | } | 1029 | } |
1030 | 1030 | ||
1031 | 1031 | ||