Skip to content

Commit

Permalink
libcurl: language
Browse files Browse the repository at this point in the history
  • Loading branch information
bagder committed Jan 10, 2016
1 parent a096f7e commit 615e393
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions libcurl.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,19 +63,19 @@ Let's look at each one a little closer...
#### Driving with the "easy" interface

The name 'easy' was picked simply because this is really the easy way to use
libcurl, and with easy of course course a few limitations. Like for example
libcurl, and with easy of course comes a few limitations. Like for example
that it can only do one transfer at a time and it does the entire transfer in
a single function call and returns once it is completed:

res = curl_easy_perform( curl_handle );

If the server is slow, if the transfer is large or if you have some unpleasent
If the server is slow, if the transfer is large or if you have some unpleasant
timeouts in the network or similar, this function call can end up taking a
very long time. You can of course set timeouts to not allow it to spend more
than N seconds, but it could still mean a substantial amount of time depending
on the particular conditions.

If you want your application to do something else while libcurl is transfering
If you want your application to do something else while libcurl is transferring
with the easy interface, you need to use multiple threads. If you want to do
multiple simultaneous transfers when using the easy interface, you need to do
each of the transfers in their own threads.
Expand Down

0 comments on commit 615e393

Please sign in to comment.