components/curl/patches/010-fix-tests.patch
changeset 3726 1c80a90dd005
parent 2151 8977d970976a
child 4660 0cca05cde869
--- a/components/curl/patches/010-fix-tests.patch	Tue Feb 03 13:45:43 2015 -0800
+++ b/components/curl/patches/010-fix-tests.patch	Tue Feb 03 13:51:23 2015 -0800
@@ -14,3 +14,28 @@
      f.close()
  
  server = PipelineServer(('0.0.0.0', args.port), PipelineRequestHandler)
+
+
+# ----------------------------------------------------------------------------
+Tests #530 and #584 fail with curl version 7.40.0. This is discussed at:
+
+  http://curl.haxx.se/mail/lib-2014-08/0161.html
+
+with the patch at:
+
+http://curl.haxx.se/mail/lib-2014-06/att-0139/0001-Delay-Curl_addHandleToPipeline-by-a-milisecond.patch
+
+addressing the problem.
+
+Upstream is already aware of this issue.
+
+--- lib/url.c.orig	2015-01-26 13:49:21.041657976 -0800
++++ lib//url.c	2015-01-26 13:50:45.391515086 -0800
+@@ -2748,6 +2748,7 @@
+ {
+   if(!Curl_llist_insert_next(pipeline, pipeline->tail, data))
+     return CURLE_OUT_OF_MEMORY;
++  Curl_wait_ms(1);
+   return CURLE_OK;
+ }
+