diff dbutil.c @ 1029:ea4676b840ef fastopen

Add the missing second half of iov code
author Matt Johnston <matt@ucc.asn.au>
date Thu, 19 Feb 2015 22:41:51 +0800
parents daf21fd50abf
children 1fff5d7163f6
line wrap: on
line diff
--- a/dbutil.c	Thu Feb 19 00:32:00 2015 +0800
+++ b/dbutil.c	Thu Feb 19 22:41:51 2015 +0800
@@ -1086,6 +1086,10 @@
 					/* No kernel MSG_FASTOPEN support. Fall back below */
 					c->writequeue = NULL;
 				}
+				m_free(message.msg_iov);
+				if (res > 0) {
+					packet_queue_consume(c->writequeue, res);
+				}
 			}
 
 			if (!c->writequeue) {