Cancel a transfer if socket poller operation fails
When using the socket poller implementation using wxEventLoopSource objects to monitor sockets, the operation wxEventLoopBase::AddSourceForFD(... can sometimes return NULL. In these cases the socket will not be monitored as needed. The only option seems to be to cancel the transfer and report a failure
This commit is contained in:
@@ -164,9 +164,10 @@ private:
|
||||
void ProcessTimerCallback(long);
|
||||
void TimeoutNotification(wxTimerEvent&);
|
||||
void ProcessTimeoutNotification();
|
||||
void ProcessSocketCallback(curl_socket_t, int);
|
||||
void ProcessSocketCallback(CURL*, curl_socket_t, int);
|
||||
void ProcessSocketPollerResult(wxThreadEvent&);
|
||||
void CheckForCompletedTransfers();
|
||||
void FailRequest(CURL*, const wxString&);
|
||||
void StopTransfer(CURL*);
|
||||
|
||||
WX_DECLARE_HASH_MAP(CURL*, wxWebRequestCURL*, wxPointerHash, \
|
||||
|
Reference in New Issue
Block a user