aboutsummaryrefslogtreecommitdiff
path: root/docs/examples/fopen.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2010-11-04 11:37:23 +0100
committerDaniel Stenberg <daniel@haxx.se>2010-11-04 11:37:23 +0100
commit542318b11361210e84d25e653bee3442fccf6766 (patch)
tree62b6f422f9b698d30093cc969bd28bacb81aba40 /docs/examples/fopen.c
parent909e711e745fe6b23f18dc9780e28a4e19d1a53a (diff)
multi use: call multi_perform even on select() timeouts
Diffstat (limited to 'docs/examples/fopen.c')
-rw-r--r--docs/examples/fopen.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/docs/examples/fopen.c b/docs/examples/fopen.c
index 1310993bd..874d380d7 100644
--- a/docs/examples/fopen.c
+++ b/docs/examples/fopen.c
@@ -180,12 +180,9 @@ fill_buffer(URL_FILE *file,int want,int waittime)
break;
case 0:
- break;
-
- default:
- /* timeout or readable/writable sockets */
- curl_multi_perform(multi_handle, &file->still_running);
- break;
+ /* timeout or readable/writable sockets */
+ curl_multi_perform(multi_handle, &file->still_running);
+ break;
}
} while(file->still_running && (file->buffer_pos < want));
return 1;