From e8214cb1807d3145907c7ed9e077fa45ada4aeea Mon Sep 17 00:00:00 2001 From: Alex Auvolat Date: Wed, 22 Apr 2020 16:51:52 +0000 Subject: Better concurrency: Use Notify instead of stupid sleep in background worker Use Semaphore to limit concurrent requests in rpc_client Make more background tasks cancellable --- test_write.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'test_write.sh') diff --git a/test_write.sh b/test_write.sh index 2c06594d..12a3cb50 100755 --- a/test_write.sh +++ b/test_write.sh @@ -1,8 +1,7 @@ #!/bin/bash for FILE in $(find target/debug/deps); do - echo - echo $FILE - curl -v localhost:3900/$FILE -X PUT -H 'Host: garage' -H 'Content-Type: application/blob' --data-binary "@$FILE" + echo -n "$FILE " + curl localhost:3900/$FILE -X PUT -H 'Host: garage' -H 'Content-Type: application/blob' --data-binary "@$FILE" || echo "ERROR" done -- cgit v1.2.3