[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] [libmicrohttpd] 100/154: incomplete
From: |
gnunet |
Subject: |
[GNUnet-SVN] [libmicrohttpd] 100/154: incomplete |
Date: |
Mon, 19 Aug 2019 10:16:52 +0200 |
This is an automated email from the git hooks/post-receive script.
ng0 pushed a commit to branch master
in repository libmicrohttpd.
commit 5880cd0cd3179e422150c2e2ee01778fda447108
Author: ng0 <address@hidden>
AuthorDate: Thu Jul 25 20:13:18 2019 +0000
incomplete
---
src/microhttpd/mhd_send.c | 16 +++++++++-------
1 file changed, 9 insertions(+), 7 deletions(-)
diff --git a/src/microhttpd/mhd_send.c b/src/microhttpd/mhd_send.c
index 513b7dfb..6cbf9c90 100644
--- a/src/microhttpd/mhd_send.c
+++ b/src/microhttpd/mhd_send.c
@@ -70,14 +70,14 @@ post_cork_setsockopt (struct MHD_Connection *connection,
ret = setsockopt (connection->socket_fd,
IPPROTO_TCP,
TCP_NOPUSH,
- (const void *) &on_val,
- sizeof (on_val));
+ (const void *) &off_val,
+ sizeof (off_val));
#endif
if (0 == ret)
{
connection->sk_cork_on = want_cork;
}
- return ret;
+ return;
}
/**
@@ -127,7 +127,7 @@ pre_cork_setsockopt (struct MHD_Connection *connection,
{
connection->sk_cork_on = want_cork;
}
- return ret;
+ return;
}
/**
@@ -190,7 +190,7 @@ MHD_send_on_connection_ (struct MHD_Connection *connection,
}
/* ! could be avoided by redefining the variable. */
- have_cork = ! connection->sk_tcp_nodelay_on;
+ bool have_cork = ! connection->sk_tcp_nodelay_on;
#ifdef MSG_MORE
have_more = true;
@@ -208,7 +208,8 @@ MHD_send_on_connection_ (struct MHD_Connection *connection,
if (want_cork && ! have_cork)
{
gnutls_record_cork (connection->tls_session);
- connection->sk_tcp_nodelay_on = false;
+ connection->sk_cork_on = false;
+ // connection->sk_tcp_nodelay_on = false;
}
if (buffer_size > SSIZE_MAX)
buffer_size = SSIZE_MAX;
@@ -239,7 +240,8 @@ MHD_send_on_connection_ (struct MHD_Connection *connection,
if (! want_cork && have_cork)
{
(void) gnutls_record_uncork (connection->tls_session, 0);
- connection->sk_tcp_nodelay_on = true;
+ connection->sk_cork_on = true;
+ // connection->sk_tcp_nodelay_on = true;
}
}
else
--
To stop receiving notification emails like this one, please contact
address@hidden.
- [GNUnet-SVN] [libmicrohttpd] 95/154: simplify, (continued)
- [GNUnet-SVN] [libmicrohttpd] 95/154: simplify, gnunet, 2019/08/19
- [GNUnet-SVN] [libmicrohttpd] 68/154: Add MHD_send_socket_state_cork_nodelay_ and use it., gnunet, 2019/08/19
- [GNUnet-SVN] [libmicrohttpd] 65/154: remove old function name., gnunet, 2019/08/19
- [GNUnet-SVN] [libmicrohttpd] 94/154: simplify, gnunet, 2019/08/19
- [GNUnet-SVN] [libmicrohttpd] 89/154: attempt fix, gnunet, 2019/08/19
- [GNUnet-SVN] [libmicrohttpd] 97/154: simplify, gnunet, 2019/08/19
- [GNUnet-SVN] [libmicrohttpd] 108/154: have_cork->want_cork, gnunet, 2019/08/19
- [GNUnet-SVN] [libmicrohttpd] 91/154: show not tell, gnunet, 2019/08/19
- [GNUnet-SVN] [libmicrohttpd] 102/154: for tests, gnunet, 2019/08/19
- [GNUnet-SVN] [libmicrohttpd] 86/154: initial move code sendfile., gnunet, 2019/08/19
- [GNUnet-SVN] [libmicrohttpd] 100/154: incomplete,
gnunet <=
- [GNUnet-SVN] [libmicrohttpd] 111/154: synt, gnunet, 2019/08/19
- [GNUnet-SVN] [libmicrohttpd] 105/154: remove commented code, gnunet, 2019/08/19
- [GNUnet-SVN] [libmicrohttpd] 99/154: remove dead code, comment new code., gnunet, 2019/08/19
- [GNUnet-SVN] [libmicrohttpd] 109/154: declare ret, gnunet, 2019/08/19
- [GNUnet-SVN] [libmicrohttpd] 120/154: configure, gnunet, 2019/08/19
- [GNUnet-SVN] [libmicrohttpd] 119/154: attempt configure fix, gnunet, 2019/08/19
- [GNUnet-SVN] [libmicrohttpd] 116/154: ack other authors, gnunet, 2019/08/19
- [GNUnet-SVN] [libmicrohttpd] 98/154: simplify, gnunet, 2019/08/19
- [GNUnet-SVN] [libmicrohttpd] 104/154: skcork, gnunet, 2019/08/19
- [GNUnet-SVN] [libmicrohttpd] 124/154: mhd_send commented,, gnunet, 2019/08/19