Commit Graph

146 Commits

Author SHA1 Message Date
Mike Blumenkrantz 0886e14ab1 return 0 on failure for status_code_get, and don't call curl functions more than once
SVN revision: 69038
2012-03-08 07:46:42 +00:00
Mike Blumenkrantz abb90050d8 The Typo That Broke The World
SVN revision: 69030
2012-03-07 21:06:34 +00:00
Mike Blumenkrantz 4652719267 added ecore_con_url_status_code_get, cleaned up recent changelog/news entries, zero http status on new transfers
SVN revision: 69009
2012-03-07 17:15:01 +00:00
Mike Blumenkrantz 894bfaeed7 check return code on CURLINFO_RESPONSE_CODE and add helper function for it
SVN revision: 69008
2012-03-07 17:06:33 +00:00
Mike Blumenkrantz 8235a2b7df patch from bluezery finishing socks env variable pickup from ecore_con_socks.c
SVN revision: 68650
2012-03-03 19:49:19 +00:00
Carsten Haitzler f81e262ba3 another function that has been deprecated since before 1.0.
SVN revision: 68367
2012-02-24 00:44:49 +00:00
Bluezery 40c61bce9a From: Bluezery <ohpowel@gmail.com>
Subject: [E-devel][Patch][ecore_con] Fix invalid curl handle removal by valgrind
Date: Wed, 22 Feb 2012 19:57:36 +0900

Hello,

discomfitor reports bugs by valigrind.  I checked it with valgrid and
I found the clues
curl_multi_remove_handle() should not be called when multi handles
being performed. So I removed curl_multi_remove_handle() code from
_ecore_con_url_info_read()
Now, curl_multi_remove_handle() is only called for all easy handles
when a multi-handle ended.
Please review this simple patch.


SVN revision: 68287
2012-02-22 19:58:34 +00:00
Mike Blumenkrantz 127c3b81da somewhat fix deferred freeing of curl objects
SVN revision: 68258
2012-02-22 10:10:22 +00:00
Mike Blumenkrantz 9417565032 reorder url complete calls to prevent invalid read
SVN revision: 68246
2012-02-22 05:46:40 +00:00
Mike Blumenkrantz aaaa571c8d hero patch from bluezery which fixes ecore-con-url
SVN revision: 68203
2012-02-21 06:48:24 +00:00
Mike Blumenkrantz fb766c1119 revert last commit, maybe I'll re-commit it in 10 years when curl 7.21.7 is more common
SVN revision: 68144
2012-02-20 07:37:53 +00:00
Mike Blumenkrantz 1552f5b548 yet another complete rewrite of ecore-con-url, fixes bugs I've been experiencing recently
does not fix curl+c-ares though :(


SVN revision: 68143
2012-02-20 07:11:23 +00:00
Mike Blumenkrantz c1ebb1ae60 somehow forgot to add this line in for previous commit, self spank
SVN revision: 68134
2012-02-19 23:24:13 +00:00
Mike Blumenkrantz 104fa491ae formatting
SVN revision: 68133
2012-02-19 23:23:44 +00:00
Mike Blumenkrantz a8e95378d8 fix current url implementation to not crash ANY TIME YOU FREE THE OBJECT DURING AN EVENT
seriously how did this go unnoticed for so many years?????


SVN revision: 68132
2012-02-19 23:16:50 +00:00
Mike Blumenkrantz 9fd11cd9da if we're going to pretend to handle errors, at least clean up before failing
SVN revision: 68129
2012-02-19 22:33:39 +00:00
Mike Blumenkrantz 60b4d79569 not sure why we're passing a bogus data pointer which is never used
SVN revision: 68128
2012-02-19 22:32:17 +00:00
Mike Blumenkrantz cc2d957e10 fix and simplify init/shutdown logic
SVN revision: 68127
2012-02-19 22:26:40 +00:00
Mike Blumenkrantz 393d25034e add debug info with url
SVN revision: 68098
2012-02-18 02:38:10 +00:00
Mike Blumenkrantz 8191c723cc fix shadow var
SVN revision: 68097
2012-02-18 02:23:09 +00:00
Mike Blumenkrantz e4655eeece outdent some code here
SVN revision: 68096
2012-02-18 02:19:36 +00:00
Mike Blumenkrantz 6abc186588 SVN revision: 67759
SPANK SPANK SPANK RASTER


SVN revision: 67772
2012-02-08 21:25:45 +00:00
Carsten Haitzler 6c31fcf709 add ecore_con_url_http_version_set() to be able to specify request
version



SVN revision: 67759
2012-02-08 13:25:08 +00:00
Bluezery fcdec47f13 From: Bluezery <ohpowel@gmail.com>
Subject: [E-devel]  [Patch][ecore_con] Fix return value checking
Date: Tue, 3 Jan 2012 10:01:17 +0900

Hi,

There is invalid return value checking of curl_multi_perform() in ecore_con_url.
Because CURLM_CALL_MULTI_PERFORM is also not  CURLM_OK,
CURLM_CALL_MULTI_PERFORM checking  should precede CURLM_OK checking.
It's simple fix. Please review this

-- 
BRs,
Kim.


SVN revision: 66771
2012-01-03 03:58:48 +00:00
Carsten Haitzler b92c19a84d Fix massive post data probile in ecore-con that would cause
post data to be corrupted (as it was never copied into the
ecore con url struct) or could cause crashes if the memory
pointed to became invalid.
                


SVN revision: 66619
2011-12-29 08:55:11 +00:00
Mike Blumenkrantz 9aedbc1bfb by the power of greyskull^Wunsigned integers, this test will always be true!
SVN revision: 66463
2011-12-22 08:08:05 +00:00
Mike Blumenkrantz 3258503e8a curl patch from bluezery to use ECORE_CON_SOCKS_V4 env variable and also add socks proxying api
SVN revision: 66462
2011-12-22 08:06:51 +00:00
Carsten Haitzler 5e5024860c ooh compile break if no curl! fix!
SVN revision: 66417
2011-12-21 08:20:16 +00:00
Bluezery 16a9961f58 From: Bluezery <ohpowel@gmail.com>
Subject: Re: [E-devel] [Patch][ecore_con_url] Add proxy & timeout set
API

There existed two problems when using ecore_con_url. We cannot set
proxy and set timeout.
So, I added two APIs for solving these problems.
Proxy can be set by setting libcurl option.
Timeout also can be set but It need to add handler for Linux alarm
signal. (Please refer:
http://curl.haxx.se/libcurl/c/curl_easy_setopt.html#CURLOPTTIMEOUT)
So I implemented it by using ecore timer.




SVN revision: 66414
2011-12-21 06:18:25 +00:00
Mike Blumenkrantz 39467c29b6 giant patch refactoring ecore-con-url from bluezery <opowel@gmail.com>
will it blend?!


SVN revision: 65888
2011-12-05 06:08:46 +00:00
Mike Blumenkrantz 6ec1250a4d redo ecore-con shutdown to fix crashes if people are stupid and call ecore_con_shutdown() while servers exist and main loop is still running
SVN revision: 65036
2011-11-11 02:44:16 +00:00
Bluezery 216ea5012c From: Bluezery <ohpowel@gmail.com>
Subject: [E-devel] [ecore_con] Bug fix when data is NULL.

If data is NULL, curl makes length field as -1 .
length filed should be set by 0.



SVN revision: 65006
2011-11-10 06:35:53 +00:00
Youness Alaoui 1dfc25fedf Ecore: Port ecore to the PS3
SVN revision: 64781
2011-11-05 17:49:49 +00:00
Kim Yunhan 262bf8d463 From: Kim Yunhan <spbear@gmail.com>
Subject: [E-devel] Small patch with ecore_con_url.

When I tested with elementary map, there is too many logs on console.
It makes me difficult to distinguish normal logs that I want to debug.
:'-(
It's libcurl's internal log for representing progress bar like this.

-----
downloaded : 343 / 363
  % Total    % Received % Xferd  Average Speed   Time    Time     Time
   Current
                                    Dload  Upload   Total   Spent
Left
 Speed
   0     0    0     0    0     0      0      0 --:--:-- --:--:--
--:--:--
  0
  downloaded : 343 / 362
    % Total    % Received % Xferd  Average Speed   Time    Time     Time
     Current
                                      Dload  Upload   Total   Spent
Left
 Speed
   0     0    0     0    0     0      0      0 --:--:-- --:--:--
--:--:--
  0
  downloaded : 343 / 361
    % Total    % Received % Xferd  Average Speed   Time    Time     Time
     Current
                                      Dload  Upload   Total   Spent
Left
 Speed
   0     0    0     0    0     0      0      0 --:--:-- --:--:--
--:--:--
  0
  downloaded : 344 / 365
  downloaded : 345 / 365
  downloaded : 346 / 365
  downloaded : 347 / 365
  -----
  
  So, I want to remove this log.
  And I look around ecore_con_url's code.
  Then I found solution for it.
  


SVN revision: 64596
2011-11-01 02:25:14 +00:00
Sebastian Dransfeld 33c929baa8 ecore/ecore_con: Remove the other while multi
SVN revision: 63962
2011-10-10 17:51:34 +00:00
Carsten Haitzler 11917747d0 try and fix post with null data?
SVN revision: 63956
2011-10-10 09:37:30 +00:00
Carsten Haitzler e5756206b7 this should fix curl support from hacning for up to 0.7* 1/fps sec on
1 or more calls and even in idlers etc. only do it once then rely on
fd's to wake up and do it again.



SVN revision: 63955
2011-10-10 09:36:56 +00:00
Daniel Juyung Seo c8a62c0cb2 ecore ecore_con_url.c: Applied ui interactoin bug fix patch from Kim
Yunhan <spbear@gmail.com>

On Wed, Sep 21, 2011 at 10:51 PM, Kim Yunhan <spbear@gmail.com> wrote:
> Hello!
>
> elm_map uses Ecore Con with CURL.
> I tested elm_map many times on my device.
> But sometimes UI interaction is held when data connection is poor.
> So I tried to debug and I found that this code lead to hold an Ecore
main
> loop.
>
> ----------------------------------------------
> In ecore_con_url.c
>
> while (curl_multi_perform(_curlm, &still_running) ==
> CURLM_CALL_MULTI_PERFORM) ;
> ----------------------------------------------
>
> curl_multi_perform() is CURL's asynchronous API.
> But above code hold an Ecore main loop.
> When it takes long time in libcurl, UI interaction is delayed.
>
> For example, If you have poor data connection.
> libcurl is trying to resolve DNS in this step.
> But it have to wait until timeout.
> At that time it looks like being locked.
>
> So I write a patch for fixing it.


SVN revision: 63636
2011-09-28 05:30:57 +00:00
Sebastian Dransfeld 8fc827f7c0 ecore: Fix unused warnings
SVN revision: 62561
2011-08-18 10:59:12 +00:00
Mike Blumenkrantz 48bb4c6252 url of ecore-con-url is now stringshared
SVN revision: 61607
2011-07-23 03:17:57 +00:00
Mike Blumenkrantz a10530a6f4 +ecore_con_url_url_get
SVN revision: 61606
2011-07-23 03:14:42 +00:00
Rafael Antognolli afaf1b535b ecore/ecore_con - Move more documentation to Ecore_Con.h.
Cookie related function documentation is moved, and some additional
comments were added to ecore_con_url_cookies_file_add and
ecore_con_url_cookies_jar_file_set.



SVN revision: 61349
2011-07-13 19:04:10 +00:00
Rafael Antognolli 0a61ad17b6 ecore/ecore_con - add more reference doc to some functions.
Also add description to the examples.



SVN revision: 61161
2011-07-08 18:06:19 +00:00
Rafael Antognolli 3f02227826 ecore/ecore_con - Move documentation from .c to .h.
This only affects ecore_con_url_* for now.
Also add docs to the structures used by ecore_con_url, and move them to
the Ecore_Con_Url_Group.



SVN revision: 61159
2011-07-08 18:06:04 +00:00
Rafael Antognolli 5b21cc4aea ecore/ecore_con - If argument is EINA_FALSE, set the value to 0!
SVN revision: 61128
2011-07-07 18:34:20 +00:00
Sanjeev BA d5208c6ed9 ecore: Minor changes to documentation of ecore_con_url_fd_set
Signed-off-By: Sanjeev BA <as2902.b@samsung.com>

SVN revision: 61043
2011-07-05 11:13:47 +00:00
Vincent Torri 27302831f4 Ecore: ecore_con: fix warning on Windows
SVN revision: 58899
2011-04-25 13:10:57 +00:00
Daniel Juyung Seo 6ef3841a37 Ecore: Removed trailing whitespaces.
SVN revision: 58753
2011-04-20 14:15:33 +00:00
Cedric BAIL 8292de72f2 ecore: Add pipelining support for HTTP 1.1.
SVN revision: 58265
2011-04-01 16:37:55 +00:00
Cedric BAIL 9c336235b2 ecore: add ecore_con_url_ssl_ca_set.
patch by PnB <Poor.NewBie@gmail.com>


SVN revision: 58197
2011-03-30 09:15:24 +00:00