Commit Graph

322 Commits

Author SHA1 Message Date
Mike Blumenkrantz ec11fcc9c1 return -1 for ecore_con_server_fd_get() in the rare case that the server has already been deleted
SVN revision: 76582
2012-09-13 07:04:11 +00:00
Mike Blumenkrantz c504378e80 unbreak ecore's ssl connectivity
SVN revision: 76230
2012-09-06 08:14:46 +00:00
Mike Blumenkrantz bf8f20a3f6 fix super hard to reproduce race condition with ecore-con clients
SVN revision: 76223
2012-09-06 07:34:00 +00:00
Daniel Willmann bf38856d5f ecore_con: Remove duplicate code
Signed-off-by: Daniel Willmann <d.willmann@samsung.com>

SVN revision: 74356
2012-07-24 14:22:00 +00:00
Mike Blumenkrantz 06a818fa5d fix really really hard-to-trigger magic failure in ecore-con
SVN revision: 73918
2012-07-16 10:30:31 +00:00
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
Mike Blumenkrantz 2ba092ba4c fix magic string typo
SVN revision: 72695
2012-06-22 12:17:59 +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 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
Mike Blumenkrantz 991e00dc86 update client flush properly, fixing bug spotted by raoulh
SVN revision: 69296
2012-03-13 13:44:18 +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
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 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 1f35fa8b95 use client_kill instead of directly eventing
SVN revision: 67322
2012-01-19 08:02:41 +00:00
ChunEon Park e2b1ac1f61 ecore/ecore_con - removed white trailings
SVN revision: 66474
2011-12-23 07:07:35 +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
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 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 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 b40fa86b4a +ecore_con_ssl_server_verify_name_set/get
SVN revision: 66002
2011-12-08 01:14:55 +00:00
Mike Blumenkrantz 77f039eb73 @since
SVN revision: 65939
2011-12-06 05:20:13 +00:00
Mike Blumenkrantz 88a69e2a8f fix some ssl socks buggies
SVN revision: 65937
2011-12-06 04:48:55 +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 9cc624c718 add some INF messages for connection death
SVN revision: 65835
2011-12-03 03:50:20 +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
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
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 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
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