-
Notifications
You must be signed in to change notification settings - Fork 14
Add test case to verify CURL can PUT objects multithreaded concurrently #197
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add test case to verify CURL can PUT objects multithreaded concurrently #197
Conversation
…and parallel 4 threads transfer of the same set of test files
401a737 to
46f1339
Compare
…performance test; default to CMake release builds in POSIX
d567bc5 to
30da67f
Compare
src/ds3_connection.c
Outdated
| g_mutex_lock(&pool->mutex); | ||
| curl_easy_reset(connection); | ||
| pool->tail = _pool_inc(pool->tail, pool->num_connections); | ||
| printf(" release connection [%d]\n", pool->tail); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there a reason this is a printf rather than a ds3_log_message?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ds3_log_message requires the client, which we don't have here, and this msg will come back out before final commit. I just added this to visually verify that the lock / unlocking is happening asynchronously
87cc5d7 to
e80f8f8
Compare
| } | ||
|
|
||
| ds3_str* ds3_str_dup(const ds3_str* string) { | ||
| if (string == NULL) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1 for null check
Uh oh!
There was an error while loading. Please reload this page.