Commit Graph

716 Commits

Author SHA1 Message Date
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 150bc83acf null check
SVN revision: 68039
2012-02-16 21:57:34 +00:00
Mike Blumenkrantz 201ae5dea3 use correct errno value for error events
SVN revision: 67960
2012-02-15 05:55:28 +00:00
Mike Blumenkrantz 89276be842 finally finish implementing SOCKS5 proxies in ecore-con.
SOCKS5 is different from SOCKS4 in that it supports password authentication mechanisms (GSSAPI is still on the todo) and IPV6, neither of which are possible with SOCKS4

NOTE THAT THE CMDLINE SYNTAX FOR AUTOSOCKSING HAS CHANGED!
 *   ECORE_CON_SOCKS_V4=[user@]server-port:lookup
 *   ECORE_CON_SOCKS_V5=[user@]server-port:lookup

also note that I did not implement autosocksing with password. it's just not safe.


SVN revision: 67959
2012-02-15 05:53:50 +00:00
Mike Blumenkrantz 3be93385bf @SVN revision: 67759
SVN revision: 67774
2012-02-08 22:58:07 +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
Mike Blumenkrantz 1f35fa8b95 use client_kill instead of directly eventing
SVN revision: 67322
2012-01-19 08:02:41 +00:00
Mike Blumenkrantz a83f8838d5 remove use of 'dead' variable from win32 code
SVN revision: 67319
2012-01-19 07:36:02 +00:00
Carsten Haitzler 25171bf215 lets check write err so we dont get warnings. :/
SVN revision: 67287
2012-01-18 04:13:52 +00:00
Guillaume Friloux 14ff0e1ae0 ecore - Various patches in ecore's doc
Hello e people, i modified some comments to get less doxygen
warnings/errors.

Signed-Off-By: Guillaume Friloux <guillaume.friloux@asp64.com>




SVN revision: 67270
2012-01-17 11:37:35 +00:00
Stefan Schmidt e5e51917d9 From: Stefan Schmidt <stefan@datenfreihafen.org>
Date: Sun, 15 Jan 2012 13:46:07 +0100
Subject: [PATCH 2/2] ecore_con_info: Remove unused err variable.


SVN revision: 67233
2012-01-15 18:42:13 +00:00
Youness Alaoui ead8d51b3c Ecore-con: Let's not break compilation if net/if.h is not found (or old system)
SVN revision: 66956
2012-01-07 11:39:23 +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
ChunEon Park e2b1ac1f61 ecore/ecore_con - removed white trailings
SVN revision: 66474
2011-12-23 07:07:35 +00:00
ChunEon Park a76caa3021 ecore/ecore_con - removed white trailings
SVN revision: 66473
2011-12-23 07:04:36 +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
Mike Blumenkrantz ec30d20fa0 add debug macros to print location of svr/cl kill
SVN revision: 66439
2011-12-21 10:13:57 +00:00
Mike Blumenkrantz 7daccc8eea provide slightly more useful dbg info with new kill api
SVN revision: 66438
2011-12-21 10:07:07 +00:00
Mike Blumenkrantz 178ac4be78 remove 'dead' member from client/server structs: this now serves no purpose
SVN revision: 66437
2011-12-21 10:02:30 +00:00
Mike Blumenkrantz 0207023886 nope
SVN revision: 66436
2011-12-21 09:35:10 +00:00
Carsten Haitzler ff64b561ca revert 66362 -> breaks ecore-con. :( sorry stu!
SVN revision: 66434
2011-12-21 09:23:27 +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 1f7c3b5a4a fix a Heroes of SVN-level breakage from 66068 which prevented all ecore-con fds from being closed :D
SVN revision: 66362
2011-12-20 06:22:30 +00:00
Mike Blumenkrantz 5658944274 fix impossible possible segv
SVN revision: 66295
2011-12-16 18:06:19 +00:00
Mike Blumenkrantz 47693ea74c add note about CORK availability
SVN revision: 66083
2011-12-10 08:23:34 +00:00
Mike Blumenkrantz 54c2db319a we've got NODELAY, may as well add CORK
SVN revision: 66082
2011-12-10 08:14:50 +00:00
Mike Blumenkrantz c5b0df352e fix cert flag detection
SVN revision: 66081
2011-12-10 08:09:17 +00:00
Mike Blumenkrantz 083d3466a1 revert 66063 + related commits: my dreams of zero-copy ecore-con transfers were shattered by the inconsistency of linux socket operations. way to go kernel developers.
SVN revision: 66078
2011-12-10 07:34:45 +00:00
Mike Blumenkrantz eecef7e076 add docs for NODELAY flag
SVN revision: 66071
2011-12-10 06:53:54 +00:00
Mike Blumenkrantz c92c213b0f temp fix while I figure out some weird behavior
SVN revision: 66069
2011-12-10 06:15:00 +00:00
Mike Blumenkrantz 387732c836 rewrote server+client deletion code to (hopefully) be failproof.
I've also set it to abort() with a big error if it gets to the old fallthrough spot, so make sure to send me a backtrace if this is reached (though it should be impossible)


SVN revision: 66068
2011-12-10 05:42:32 +00:00
Mike Blumenkrantz 498904e260 more error event unification
SVN revision: 66067
2011-12-10 05:25:30 +00:00
Mike Blumenkrantz e90a7c7cbd some small cleanups to unify more error code
SVN revision: 66066
2011-12-10 05:17:34 +00:00
Mike Blumenkrantz ff57b89995 add windows error events for new code, condense some connect handlers
SVN revision: 66065
2011-12-10 05:09:47 +00:00
Mike Blumenkrantz 0b109fb5c2 optimize read mechanics for remote servers using ioctl to determine number of bytes available for reading.
in general, this should provide an improvement which scales with the amount of data being transferred:
* small transfers will incur a small amount of overhead from potentially unneeded memory as I try to account for a bug in FIONREAD which returns a number that is smaller than the actual number of bytes available for read on a socket
* large transfers will no longer require any copies of the data

on systems which do not provide the FIONREAD ioctl(), old functionality will be used
this should work on windows, though I (obviously) can't test it myself

thus ends the longest commit message I have ever written


SVN revision: 66063
2011-12-09 22:35:12 +00:00
Mike Blumenkrantz 2d6064e88f okay I was a little too excited
SVN revision: 66042
2011-12-08 17:27:30 +00:00
Mike Blumenkrantz 776e6e445d more binbuf_manage_new!
SVN revision: 66038
2011-12-08 16:08:33 +00:00
Mike Blumenkrantz bdc371cac6 use binbuf_manage_new
SVN revision: 66037
2011-12-08 15:58:01 +00:00
Mike Blumenkrantz 3ed65e0992 unify and improve gnutls debug output
SVN revision: 66019
2011-12-08 05:58:47 +00:00
Mike Blumenkrantz 06d5a4c5c4 align debug info
SVN revision: 66017
2011-12-08 05:02:49 +00:00
Mike Blumenkrantz 29f67c9bc5 more informative error messages when cert verification fails
SVN revision: 66012
2011-12-08 03:56:29 +00:00
Mike Blumenkrantz 936f6aa7fa fix type so openssl verification works again
SVN revision: 66011
2011-12-08 03:53:49 +00:00
Mike Blumenkrantz dcc86ed639 ca loading function now loads directories
SVN revision: 66009
2011-12-08 03:25:53 +00:00
Mike Blumenkrantz 97a83712b0 unify openssl debug printing and remove #ifdefs: now this will always print with ecore-con:4
SVN revision: 66008
2011-12-08 02:59:27 +00:00
Mike Blumenkrantz 1416e28363 fix compat on openssl errors
SVN revision: 66007
2011-12-08 02:53:43 +00:00
Mike Blumenkrantz 5410f75bdc beef up openssl debug output
SVN revision: 66006
2011-12-08 02:37:00 +00:00
Mike Blumenkrantz 653a01d287 better error messages on certificate verify failure
SVN revision: 66005
2011-12-08 02:11:22 +00:00
Mike Blumenkrantz 7cc2aa0582 whoops, fix compile on unrelated change that snuck in
changelog tbd


SVN revision: 66004
2011-12-08 01:30:53 +00:00
Mike Blumenkrantz e47742e142 damn you ctrl+d!
SVN revision: 66003
2011-12-08 01:23:10 +00:00
Mike Blumenkrantz b40fa86b4a +ecore_con_ssl_server_verify_name_set/get
SVN revision: 66002
2011-12-08 01:14:55 +00:00
Mike Blumenkrantz f0e4cb8e79 allow certificates to be loaded for STARTTLS
SVN revision: 66000
2011-12-07 23:36:15 +00:00
Mike Blumenkrantz bb3f0ffa4b one of these days I'm going to snap and throw my computer off my balcony because of this
SVN revision: 65944
2011-12-06 05:52:45 +00:00
Mike Blumenkrantz e7a491b1be @since
SVN revision: 65943
2011-12-06 05:37:29 +00:00
Mike Blumenkrantz 77f039eb73 @since
SVN revision: 65939
2011-12-06 05:20:13 +00:00
Mike Blumenkrantz adc327c8f8 last ssl bugger
SVN revision: 65938
2011-12-06 05:14:03 +00:00
Mike Blumenkrantz 88a69e2a8f fix some ssl socks buggies
SVN revision: 65937
2011-12-06 04:48:55 +00:00
Mike Blumenkrantz 8a8242016e ...make that twice
SVN revision: 65936
2011-12-06 03:51:01 +00:00
Mike Blumenkrantz db16af76ee just kidding before, had to break svn at least once today
SVN revision: 65935
2011-12-06 03:41:16 +00:00
Mike Blumenkrantz 0099b08234 introducinggggggggggggggg <drum roll>:
ECORE-CON-SOCKS! SOCKS ON!!!!

now ecore_con supports socks (v4 and v4a only, so no ipv6) connections natively for making remote connections
for those of you who want their apps to start proxying immediately, just update and export this handy environment variable:
ECORE_CON_SOCKS_V4=[user@]PROXY_IP_ADDRESS:PROXY_PORT[:1] <--use :1 here to enable dns lookups on the proxy


SVN revision: 65934
2011-12-06 03:32:16 +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 9cc624c718 add some INF messages for connection death
SVN revision: 65835
2011-12-03 03:50:20 +00:00
Mike Blumenkrantz d9587433b5 remove some unused functions pointed out by Joerg Sonnenberger <joerg@britannica.bec.de>
SVN revision: 65798
2011-12-02 03:27:04 +00:00
Carsten Haitzler d3e45fc7a7 fix ecore-con tracking of event count lists for clients!!! thanks
valgrind!



SVN revision: 65647
2011-11-28 12:06:50 +00:00
Mike Blumenkrantz fd657b8fc4 also move magic unset to after all events come back so we don't break anyone's event handlers
SVN revision: 65426
2011-11-20 07:11:05 +00:00
Mike Blumenkrantz b2a76dbe65 attempt #1 to fix obscure disconnect crash
SVN revision: 65416
2011-11-20 00:28:48 +00:00
Mike Blumenkrantz be730ca826 rewrite a few small things to make code more clear
SVN revision: 65360
2011-11-18 03:59:00 +00:00
Vincent Torri bc17a43384 Ecore: fix warning: 'struct in_addr' declared inside parameter list on OpenBSD
Patch by Fabien Romano from OpenBSD


SVN revision: 65210
2011-11-14 22:25:07 +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
Iván Briano 2f4c5de9ed Properly check for empty string
SVN revision: 65034
2011-11-10 23:21:15 +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
Mike Blumenkrantz 491fe6b0d6 remove some unused vars
SVN revision: 64964
2011-11-09 01:19:14 +00:00
Mike Blumenkrantz 47b58f75da fix null deref
SVN revision: 64963
2011-11-09 01:18:18 +00:00
Cedric BAIL 05d8a9cf3c ecore: improve ecore_con speed by using mempool.
SVN revision: 64814
2011-11-06 12:26:00 +00:00
Youness Alaoui 1dfc25fedf Ecore: Port ecore to the PS3
SVN revision: 64781
2011-11-05 17:49:49 +00:00
Mike Blumenkrantz a7fac0f526 add yet another warning here in case people miss the first few subtle hints
SVN revision: 64734
2011-11-04 14:44:30 +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
Mike Blumenkrantz e957cb9c40 patch from Martin Jansa <Martin.Jansa@gmail.com> to fix uclibc build.
this is yet another round of spankies for kakoroto


SVN revision: 64505
2011-10-29 07:03:20 +00:00
Youness Alaoui 84e9551521 Ecore: IN6_IS_ADDR_V4MAPPED needs an in6_addr as input on OSX
SVN revision: 64090
2011-10-15 09:30:58 +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
Youness Alaoui da2fb1b6f5 Ecore-con: Oups, fix ipv6 support in cares support after previous commit misstep
SVN revision: 63755
2011-10-02 23:41:42 +00:00
Youness Alaoui 0618b78f1e Ecore-con: Allow to disable local sockets support, and disable them on ps3
SVN revision: 63683
2011-09-29 21:05:32 +00:00
Youness Alaoui 84796ed59b Ecore-con: Use inet_ntop instead of getnameinfo.
getnameinfo is a blocking call would would resolve a sockaddr into
its hostname, not into an IP address, so the ip_get should use the
inet_ntop call instead.

SVN revision: 63682
2011-09-29 21:05:20 +00:00
Youness Alaoui 1fc4a13f80 Ecore-con: Test for IPV6 availability
SVN revision: 63680
2011-09-29 21:04:54 +00:00
Youness Alaoui ed03a201ef ecore-con: Do not use TCP_NODELAY if netinet/tcp.h is not found
SVN revision: 63679
2011-09-29 21:04:45 +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
Mike Blumenkrantz b9159044ed more @since 1.1
SVN revision: 63365
2011-09-13 23:04:18 +00:00