aboutsummaryrefslogtreecommitdiff
path: root/src/microspdy/session.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/microspdy/session.c')
-rw-r--r--src/microspdy/session.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/microspdy/session.c b/src/microspdy/session.c
index d2a34de5..3512d45c 100644
--- a/src/microspdy/session.c
+++ b/src/microspdy/session.c
@@ -861,7 +861,7 @@ SPDYF_session_read (struct SPDY_Session *session)
861int 861int
862SPDYF_session_write (struct SPDY_Session *session, bool only_one_frame) 862SPDYF_session_write (struct SPDY_Session *session, bool only_one_frame)
863{ 863{
864 int i; 864 unsigned int i;
865 int bytes_written; 865 int bytes_written;
866 struct SPDYF_Response_Queue *queue_head; 866 struct SPDYF_Response_Queue *queue_head;
867 struct SPDYF_Response_Queue *response_queue; 867 struct SPDYF_Response_Queue *response_queue;
@@ -872,7 +872,7 @@ SPDYF_session_write (struct SPDY_Session *session, bool only_one_frame)
872 for(i=0; 872 for(i=0;
873 only_one_frame 873 only_one_frame
874 ? i < 1 874 ? i < 1
875 : i < SPDYF_NUM_SENT_FRAMES_AT_ONCE; 875 : i < session->max_num_frames;
876 ++i) 876 ++i)
877 { 877 {
878 //if the buffer is not null, part of the last frame is still 878 //if the buffer is not null, part of the last frame is still
@@ -1294,6 +1294,7 @@ SPDYF_session_accept(struct SPDY_Daemon *daemon)
1294 1294
1295 session->daemon = daemon; 1295 session->daemon = daemon;
1296 session->socket_fd = new_socket_fd; 1296 session->socket_fd = new_socket_fd;
1297 session->max_num_frames = daemon->max_num_frames;
1297 1298
1298 ret = SPDYF_io_set_session(session, daemon->io_subsystem); 1299 ret = SPDYF_io_set_session(session, daemon->io_subsystem);
1299 SPDYF_ASSERT(SPDY_YES == ret, "Somehow daemon->io_subsystem iswrong here"); 1300 SPDYF_ASSERT(SPDY_YES == ret, "Somehow daemon->io_subsystem iswrong here");