WebCore/ChangeLog

 12008-02-04 Kevin Ollivier <kevino@theolliviers.com>
 2
 3 Reviewed by NOBODY (OOPS!).
 4
 5 Calling select() when all the file descriptors are NULL
 6 stops the file download on Windows. As a result, do not
 7 call select() when there are no valid descriptors.
 8
 9 * platform/network/curl/ResourceHandleManager.cpp:
 10 (WebCore::ResourceHandleManager::downloadTimerCallback):
 11
1122008-02-04 Jon Honeycutt <jhoneycutt@apple.com>
213
314 Reviewed by Darin.
29979

WebCore/platform/network/curl/ResourceHandleManager.cpp

277277 FD_ZERO(&fdwrite);
278278 FD_ZERO(&fdexcep);
279279 curl_multi_fdset(m_curlMultiHandle, &fdread, &fdwrite, &fdexcep, &maxfd);
 280#if PLATFORM(WIN_OS)
 281 // When the 3 file descriptors are empty, winsock will return -1
 282 // and bail out, stopping the file download. So make sure we
 283 // have valid file descriptors before calling select.
 284 if (maxfd >= 0)
 285#endif
280286 rc = ::select(maxfd + 1, &fdread, &fdwrite, &fdexcep, &timeout);
281287 } while (rc == -1 && errno == EINTR);
282288 setDeferringTimers(false);
29957