1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-22 08:08:50 -05:00

test1513: eliminated race condition in test run

It seems that some systems (e.g. fairly consistently in some recent
Solaris autobuilds) would manage to get to the connect phase before the
progress callback was called, resulting in a CURLE_COULDNT_CONNECT
error. Reworked the test to point at a test server that never returns a
full result so the progress callback always gets a chance to be called
before the transfer can complete in some other way.
This commit is contained in:
Dan Fandrich 2015-03-21 23:57:32 +01:00
parent 7f5a170442
commit 148207e2d7

View File

@ -7,16 +7,20 @@ PROGRESSFUNCTION
# Server-side
<reply>
<data nocheck="yes">
HTTP/1.1 204 PARTIAL
X-Comment: partial response to keep the client waiting
</data>
<postcmd>
wait 10
</postcmd>
</reply>
# Client-side
<client>
<server>
none
</server>
<features>
http
</features>
</server>
<tool>
lib1513
</tool>
@ -26,7 +30,7 @@ return failure immediately from progress callback
# this server/host won't be used for real
<command>
http://localhost/1513
http://%HOSTIP:%HTTPPORT/1513
</command>
</client>