Commit Graph

713 Commits

Author SHA1 Message Date
Mike Blumenkrantz 9409b232ed correctly handle resolver failures during connection, should fix super long-standing bug which caused crashes when no network connection was present
SVN revision: 73141
2012-07-02 09:24:02 +00:00
Mike Blumenkrantz 11dfca7e68 add some error messages when server connections fail for debugging
SVN revision: 72984
2012-06-28 08:51:06 +00:00
Raphael Kubo da Costa d8ed77c892 From: Raphael Kubo da Costa <rakuco@FreeBSD.org>
To: enlightenment-devel@lists.sourceforge.net
Subject: [E-devel] [PATCH] Import upstream commit to dns.c to fix the build on some BSDs
Date: Sat, 23 Jun 2012 16:04:56 -0300

Hi there,

The attached patch includes upstream commit
bae230201ace92141a1f43f655013f4ee22cd45a to dns.c, which should fix the
build for both FreeBSD (where _XOPEN_SOURCE should not need to be
tweaked) and NetBSD.


SVN revision: 72733
2012-06-23 20:22:44 +00:00
Mike Blumenkrantz 2ba092ba4c fix magic string typo
SVN revision: 72695
2012-06-22 12:17:59 +00:00
Vincent Torri 059ac47170 Ecore_con: fix compilation on Windows
ecore_con_dns.c is using EAGAIN. On linux, errno.h is certainly
indirectly included by other header files, it's not the case
on Windows.


SVN revision: 72489
2012-06-19 15:56:44 +00:00
Carsten Haitzler 7e326357fb tone down mempool sizes
SVN revision: 72254
2012-06-17 01:54:28 +00:00
Mike Blumenkrantz 87c142844f fix a somewhat alarming fd leak with the new resolver
SVN revision: 72063
2012-06-13 06:52:02 +00:00
Mike Blumenkrantz 5c75633883 print error message when local connect fails
SVN revision: 71950
2012-06-11 14:15:12 +00:00
Mike Blumenkrantz 079c2aa1d3 use new compiler flag macro to disable tons of warnings
thx vtorri!


SVN revision: 71858
2012-06-08 18:53:39 +00:00
Vincent Torri 695dba94f2 Remove the stupid hack, and remove the warning flag (best way to break on some compilers. If you want it, set your own env vars)
SVN revision: 71819
2012-06-07 15:39:27 +00:00
Mike Blumenkrantz 5dc9809f66 force c99 mode when using dns.c
SVN revision: 71790
2012-06-07 10:27:18 +00:00
Mike Blumenkrantz 7948321b93 C99 isn't good enough for us, we use C89
SVN revision: 71782
2012-06-07 08:29:45 +00:00
Mike Blumenkrantz a00765361d on the advice of the insightful creator of dns.c, account for when a UDP
answer is truncated and the resolver switches to TCP, causing the pollfd
descriptor will change. Any poll on this old descriptor will either
timeout or continually poll as ready


SVN revision: 71776
2012-06-07 07:22:53 +00:00
Mike Blumenkrantz eee42b60d9 revert ecore-con refcounting stuff, fix the problem in ipc (hopefully)
wfm


SVN revision: 71738
2012-06-06 09:49:24 +00:00
Mike Blumenkrantz 3d656b021e some dns.c usage changes as suggested by its author
SVN revision: 71702
2012-06-05 07:44:44 +00:00
Mike Blumenkrantz 161ac501e5 as I promised long, long ago, ecore now has its own asynchronous dns resolver! everyone cheer for not needing c-ares any longer!
dns.c is the work of William Ahern (http://25thandclement.com/~william/projects/dns.c.html) and has been in development for ~4 years.
it has zero documentation, no examples, and no comments: I'm pretty sure he's an EFL developer in disguise.

this new resolver is roughly 10-12% faster than c-ares, will never randomly break, requires no external libraries, and is much simpler on the efl side.

by default, dns.c resolution is enabled any time ipv6 support is detected and c-ares support is not requested;
it should work on all platforms (wink wink vtorri), but it has no way of disabling ipv6 (someone can go through dns.c/h and do that if they feel so inclined)


SVN revision: 71690
2012-06-04 21:10:17 +00:00
Mike Blumenkrantz fd3b513079 unbreak my last commit
SVN revision: 71682
2012-06-04 09:16:19 +00:00
Mike Blumenkrantz f472e919e2 add ECORE_{CON,IPC}_NO_PROXY flag to disable proxying on specified connections
SVN revision: 71681
2012-06-04 09:03:04 +00:00
Carsten Haitzler dcf4d1401e and no more segv's in ecore-con and ecore-ipc. see changelog.
SVN revision: 71400
2012-05-24 07:49:30 +00:00
Mike Blumenkrantz 5d3573c054 better fix for ecore-con client disconnecting maybe
SVN revision: 71393
2012-05-24 06:39:43 +00:00
Carsten Haitzler c824a97c71 before i changelog and backport this... discomfitor - look at this!
how the hell did we get ecore_con to the state of NEVER
closing/freeing clients?



SVN revision: 71352
2012-05-23 09:07:47 +00:00
Cedric BAIL 8a73b16dfb ecore: fix SOCKS proxy doc. That should be in doxygen anyway. Wondering
how.


SVN revision: 70924
2012-05-11 02:37:14 +00:00
Vincent Torri 54619b5991 Ecore: fix linking on Windows
SVN revision: 70788
2012-05-05 09:11:31 +00:00
Sanjeev BA b9ed47a471 several fixes for the doxygen docs.
Author : Jérôme Pinot <ngc891@gmail.com>

SVN revision: 70426
2012-04-23 23:31:38 +00:00
Jonas M. Gastal 9080cd0a3a Cleanup Doxygen Warnings - ecore 1
Files modified:
ecore/doc/Doxyfile.in
ecore/src/lib/ecore/Ecore.h
ecore/src/lib/ecore/ecore.c
ecore/src/lib/ecore/ecore_getopt.c
ecore/src/lib/ecore/ecore_main.c
ecore/src/lib/ecore_con/Ecore_Con.h

SVN revision: 70421
2012-04-23 20:09:44 +00:00
Jérôme Pinot 7d464af0a1 From: Jérôme Pinot <ngc891@gmail.com>
Subject: [E-devel] [patch] ecore doxygen doc (2)
Date: Thu, 12 Apr 2012 12:46:04 +0900

Hi,

This is a big patch. It fixes:
- undef #EINA_{TRUE,FALSE} links
- @c for NULL and EINA_{TRUE,FALSE}
- some formatting/spello
- several missing return types


SVN revision: 70117
2012-04-12 03:51:36 +00:00
Daniel Juyung Seo 3d3f973105 ecore: Fixed documentation.
SVN revision: 69875
2012-04-02 23:47:00 +00:00
Jérôme Pinot 59bc51be37 From: Jérôme Pinot <ngc891@gmail.com>
Subject: [E-devel] [patch] ecore doxygen doc

Here is a patch to correct some problems in ecore doxygen doc.
It fixes:

/tmp/ecore/doc/examples.dox:1173: warning: Unsupported xml/html tag
<some_num> found
/tmp/ecore/doc/examples.dox:1174: warning: Unsupported xml/html tag
<some_path> found
/tmp/ecore/doc/examples.dox:1176: warning: Unsupported xml/html tag
<some_num> found
/tmp/ecore/src/lib/ecore_con/ecore_con_ssl.c:714: warning: The
following parameters of
ecore_con_ssl_server_privkey_add(Ecore_Con_Server *svr, const char
*key_file) are not documented:
  parameter 'svr'
  /tmp/ecore/src/lib/ecore_con/Ecore_Con.h:1360: warning: The
following parameters of ecore_con_url_http_version_set(Ecore_Con_Url
*url_con, Ecore_Con_Url_Http_Version version) are not documented:
  parameter 'url_con'
  /tmp/ecore/src/lib/ecore_evas/Ecore_Evas.h:530: warning: argument
'demand_attention' of command @param is not found in the argument list
of ecore_evas_demand_attention_set(Ecore_Evas *ee, Eina_Bool demand)
/tmp/ecore/src/lib/ecore_evas/Ecore_Evas.h:530: warning: The following
parameters of ecore_evas_demand_attention_set(Ecore_Evas *ee,
Eina_Bool demand) are not documented:
  parameter 'demand'
  /tmp/ecore/src/lib/ecore_x/xcb/ecore_xcb_damage.c:129: warning:
Unsupported xml/html tag <empty> found


There are more things to fix due to API change but it's not so obvious
for me. I will first continue to check/correct trivial things in the
others efl doxygen doc.



SVN revision: 69820
2012-03-31 12:03:05 +00:00
Mike Blumenkrantz 991e00dc86 update client flush properly, fixing bug spotted by raoulh
SVN revision: 69296
2012-03-13 13:44:18 +00:00
Bluezery 33db572b42 From: Bluezery <ohpowel@gmail.com>
Subject: [E-devel] [Patch][ecore_con] Simple bug fix
Date: Mon, 12 Mar 2012 13:45:02 +0900

Hello,

This is patch to prevent a segfault if curlmsg == NULL.

Thanks.


SVN revision: 69217
2012-03-12 04:53:47 +00:00
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
Vincent Torri b24490c854 Ecore_Con: should fix compilation on Mac OS X
SVN revision: 69036
2012-03-07 23:34:38 +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
Jonas M. Gastal 2ddef61a69 Ecore con style fix.
SVN revision: 68726
2012-03-05 14:59:59 +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
Cedric BAIL 11530b355d ecore: binbuf doesn't accept NULL (that's what EINA_ARG_NONNULL tell us...)
SVN revision: 68403
2012-02-24 11:21:12 +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 d37f6003cf allow server to write out last data to client before disconnecting, also fix leak I previously added
SVN revision: 68249
2012-02-22 08:50:43 +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
Jihoon Kim 2482c6aeeb fix doxygen
SVN revision: 68197
2012-02-21 04:16:53 +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