]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
pullup:
authorAndreas Gustafsson <source@isc.org>
Wed, 7 Feb 2001 02:41:47 +0000 (02:41 +0000)
committerAndreas Gustafsson <source@isc.org>
Wed, 7 Feb 2001 02:41:47 +0000 (02:41 +0000)
Only check to make sure that the full number of bytes were sent if the
send operation succeeded.  I'm still not convinced that send_done() works
correctly, but making other changes that look correct causes assertion failures.

lib/omapi/connection.c

index 8df7969675061f086dae2271fb83b7e23a910709..8b21b3533660c409bb66ca06a5665bc740624a79 100644 (file)
@@ -15,7 +15,7 @@
  * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  */
 
-/* $Id: connection.c,v 1.36.4.1 2001/01/09 22:52:53 bwelling Exp $ */
+/* $Id: connection.c,v 1.36.4.2 2001/02/07 02:41:47 gson Exp $ */
 
 /* Principal Author: DCL */
 
@@ -416,8 +416,9 @@ send_done(isc_task_t *task, isc_event_t *event) {
         * Check the validity of the assumption that partial
         * writes are not done.
         */
-       INSIST(sent_bytes == connection->out_bytes &&
-              sent_bytes == isc_bufferlist_usedcount(&bufferlist));
+       if (socketevent->result == ISC_R_SUCCESS)
+               INSIST(sent_bytes == connection->out_bytes &&
+                      sent_bytes == isc_bufferlist_usedcount(&bufferlist));
 
        /*
         * Acquire the wait_lock before proceeding, to guarantee that