Commit 7167313c authored by commit-queue@webkit.org's avatar commit-queue@webkit.org
Browse files

Support SSL error handling in case of synchronous job.

https://bugs.webkit.org/show_bug.cgi?id=125301

Patch by Robert Sipka <sipka@inf.u-szeged.hu> on 2014-01-21
Reviewed by Brent Fulgham.

Set ssl error informations for the users.

* platform/network/curl/ResourceHandleManager.cpp:
(WebCore::ResourceHandleManager::dispatchSynchronousJob):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@162464 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 3d5532ad
2014-01-21 Robert Sipka <sipka@inf.u-szeged.hu>
Support SSL error handling in case of synchronous job.
https://bugs.webkit.org/show_bug.cgi?id=125301
Reviewed by Brent Fulgham.
Set ssl error informations for the users.
* platform/network/curl/ResourceHandleManager.cpp:
(WebCore::ResourceHandleManager::dispatchSynchronousJob):
2014-01-21 Simon Fraser <simon.fraser@apple.com>
 
Export systemTotalMemory() and systemMemoryLevel() for MobileSafari
......@@ -843,8 +843,9 @@ void ResourceHandleManager::dispatchSynchronousJob(ResourceHandle* job)
// curl_easy_perform blocks until the transfert is finished.
CURLcode ret = curl_easy_perform(handle->m_handle);
if (ret != 0) {
if (ret != CURLE_OK) {
ResourceError error(String(handle->m_url), ret, String(handle->m_url), String(curl_easy_strerror(ret)));
error.setSSLErrors(handle->m_sslErrors);
handle->client()->didFail(job, error);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment