]> granicus.if.org Git - curl/commitdiff
add proper error message when send() fails
authorDaniel Stenberg <daniel@haxx.se>
Tue, 12 Oct 2004 07:24:19 +0000 (07:24 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Tue, 12 Oct 2004 07:24:19 +0000 (07:24 +0000)
lib/sendf.c

index 7d0f71de17a923ca2fc1a9614d4b34501c07cc60..43163e61fd21ddbc429421ed2bcf40dcae8508e2 100644 (file)
@@ -308,6 +308,9 @@ CURLcode Curl_write(struct connectdata *conn,
         )
         /* this is just a case of EWOULDBLOCK */
         bytes_written=0;
+      else
+        failf(conn->data, "Send failure: %s",
+              Curl_strerror(conn, err));
     }
 #ifdef USE_SSLEAY
   }