Mike Blumenkrantz
76bdd30da0
add magic strings for ecore_con
...
SVN revision: 54240
2010-11-06 17:04:09 +00:00
Mike Blumenkrantz
8a87f08107
delete servers on 0
...
SVN revision: 54209
2010-11-06 01:57:45 +00:00
Sebastian Dransfeld
bc8a34b688
formatting
...
SVN revision: 54207
2010-11-06 01:22:50 +00:00
Sebastian Dransfeld
46cf959d70
Declaration at beginning of block
...
SVN revision: 54206
2010-11-06 01:22:40 +00:00
Sebastian Dransfeld
5fc5dcc215
Right fix for alloc
...
Actually we already checked that num != 0, but lacked num < 0 for one of
the allocs
SVN revision: 54205
2010-11-06 01:22:29 +00:00
Mike Blumenkrantz
e289280418
add ecore_con_client_connected_get to avoid people scratching their heads and wondering how the hell they're supposed to know if a client has disconnected
...
SVN revision: 54204
2010-11-06 00:17:04 +00:00
Mike Blumenkrantz
a5489cd5c7
remove erroneous return, add some debug info
...
SVN revision: 54203
2010-11-05 23:48:15 +00:00
Mike Blumenkrantz
0a32ddcc31
fix some cases where refcount was <0 and so things were not being freed
...
SVN revision: 54199
2010-11-05 20:55:02 +00:00
Mike Blumenkrantz
add4a1d9a4
fix disconnect conditions for non-ssl reads
...
SVN revision: 54197
2010-11-05 19:46:48 +00:00
Sebastian Dransfeld
589e832cb7
Check whether we actually want to alloc data
...
SVN revision: 54179
2010-11-05 13:11:52 +00:00
Mike Blumenkrantz
6c1cd431a2
malloc check
...
SVN revision: 54156
2010-11-04 15:48:17 +00:00
Mike Blumenkrantz
2b0ff1a99f
for some reason we weren't setting write on fds when all data had not been sent. this should make ecore_con MUCH snappier
...
SVN revision: 54155
2010-11-04 15:01:05 +00:00
Mike Blumenkrantz
b9fade7530
more refactoring, fix bug that was exposed where a completed ssl read (which returns 0 bytes) causes disconnect
...
SVN revision: 54134
2010-11-03 19:38:00 +00:00
Mike Blumenkrantz
3ffb7e4c16
use safety macros to check mallocs, remove some dead code, optimize read loops by removing them, refactor a lot of code to not be indented halfway across the screen
...
SVN revision: 54133
2010-11-03 19:08:31 +00:00
Mike Blumenkrantz
ddd151bf37
reformat using ecrustify because uncrustify dicked it up previously
...
SVN revision: 54128
2010-11-03 17:58:37 +00:00
Mike Blumenkrantz
33c81c1983
add some safety checks so people can see wtf went wrong when sends fail
...
SVN revision: 54125
2010-11-03 16:11:12 +00:00
Mike Blumenkrantz
01760826bb
only free when exists
...
c/o vtorri
SVN revision: 54075
2010-11-01 11:24:29 +00:00
Mike Blumenkrantz
57cee09e0d
eh I guess I'll clean up a little bit on failure too
...
SVN revision: 54074
2010-11-01 07:11:25 +00:00
Mike Blumenkrantz
025cfe4c67
fix incorrect realloc usage
...
SVN revision: 54073
2010-11-01 07:10:07 +00:00
Mike Blumenkrantz
446c27ac31
remove dead code
...
SVN revision: 53973
2010-10-28 18:24:22 +00:00
Mike Blumenkrantz
9daab48ec2
fix some random error cases where events would fire too fast and cause a segv
...
SVN revision: 53952
2010-10-28 10:59:30 +00:00
Carsten Haitzler
8be0e4590e
remove changes in case developer dumber than expected?
...
:) (aagh was most annoying to find this today).
SVN revision: 53437
2010-10-15 07:42:29 +00:00
Mike Blumenkrantz
1df6a75020
make this more explicit in case compiler is dumber than expected?
...
SVN revision: 53431
2010-10-14 22:13:40 +00:00
Mike Blumenkrantz
e2662d1b7c
2 obscure bugs in one commit:
...
make cert use more overt and set up fd handler before attempting to use it
SVN revision: 53363
2010-10-13 16:40:52 +00:00
Gustavo Sverzut Barbieri
3a88bc8b71
log domains in lower-case only please.
...
let's make it a standard so we don't have to look at the code
everytime to figure out the name...
SVN revision: 53172
2010-10-07 22:31:46 +00:00
Carsten Haitzler
ac77353cfa
lets set num to 0 shall we? :)
...
SVN revision: 53126
2010-10-06 23:54:06 +00:00
Mike Blumenkrantz
abad9a5eb3
clear out the _try series of functions because they're useless
...
SVN revision: 52985
2010-10-02 21:13:56 +00:00
Mike Blumenkrantz
603831821f
some DBG edits, fix case where ssl handshake completes and no more data is sent/received
...
SVN revision: 52972
2010-10-02 01:32:54 +00:00
Mike Blumenkrantz
7cb095cc24
set fd handler flags properly from gnutls, update dbg info accordingly
...
reminder: do this for openssl later
SVN revision: 52910
2010-09-29 23:53:00 +00:00
Mike Blumenkrantz
c0593c571a
add more debug output, and even more with -DPRINT_LOTS_OF_DEBUG
...
SVN revision: 52891
2010-09-29 14:52:36 +00:00
Mike Blumenkrantz
7af28b08ff
reorder some handshake events to hopefully reduce overhead slightly
...
SVN revision: 52878
2010-09-29 05:08:47 +00:00
Mike Blumenkrantz
75b958531d
compile fixes for sun compiler
...
SVN revision: 52877
2010-09-29 04:06:28 +00:00
Mike Blumenkrantz
f5f8a3c45d
DBG output
...
SVN revision: 52875
2010-09-29 03:52:32 +00:00
Mike Blumenkrantz
b64b0b3ac9
first part of ssl rerererewrite: split functions, move stuff out of prepare(), and add verification for gnutls clients
...
SVN revision: 52837
2010-09-28 03:16:08 +00:00
Mike Blumenkrantz
a46d1d564c
attempt to rehandshake more frequently to avoid unnecessary looping
...
SVN revision: 52713
2010-09-25 04:22:10 +00:00
Mike Blumenkrantz
0d535058a9
implement ssl rehandshakes
...
convert bool variable to bool
fix bug where ssl read/write could improperly result in disconnect
SVN revision: 52710
2010-09-25 03:02:10 +00:00
Mike Blumenkrantz
da4dcea34f
fix events for async handshaking
...
SVN revision: 52672
2010-09-24 05:57:03 +00:00
Mike Blumenkrantz
60b4269b5f
yet another ecore_con overhaul!
...
*internal function rename
*******finally fix ssl handshaking to be non-blocking
SVN revision: 52665
2010-09-24 04:15:42 +00:00
Vincent Torri
3fd0a6fb08
remove whitespaces
...
SVN revision: 52569
2010-09-22 08:03:38 +00:00
Mike Blumenkrantz
fb977d72c4
implement functions to time out client connections to our server
...
*set/get default idle timeout of clients*
+ecore_con_server_timeout_set
+ecore_con_server_timeout_get
*set/get idle timeout of a client*
+ecore_con_client_timeout_set
+ecore_con_client_timeout_get
*get connection uptime of a client/server*
+ecore_con_client_uptime_get
+ecore_con_server_uptime_get
*fix giant ssl server memory leak*
SVN revision: 52564
2010-09-22 04:48:09 +00:00
Mike Blumenkrantz
ad3ecd489a
ecore_con_url_destroy -> ecore_con_url_free
...
also some small function rearranging
SVN revision: 52534
2010-09-21 06:49:07 +00:00
Mike Blumenkrantz
fdadea7eca
ecore_con_server_connected_get now returns Eina_Bool
...
SVN revision: 52525
2010-09-21 01:48:46 +00:00
Mike Blumenkrantz
e56789f77e
This is the Doxygen Police! If you committed any of these lines, accept your public shaming!
...
SVN revision: 52513
2010-09-20 20:52:15 +00:00
Mike Blumenkrantz
40396f6867
doxy todo--
...
SVN revision: 52509
2010-09-20 20:12:17 +00:00
Mike Blumenkrantz
c578a955ae
fix obscure error case where CLIENT_DEL event is not generated after a client ssl pings ecore's server and disconnects immediately after handshake
...
SVN revision: 52504
2010-09-20 19:32:37 +00:00
Mike Blumenkrantz
137da6826d
add cl->client_count member to prevent segv when counting a list that is actually null but hasn't been nulled
...
SVN revision: 52503
2010-09-20 19:31:11 +00:00
Mike Blumenkrantz
d28a6dd5d6
formatting, switch lost_client to bool
...
SVN revision: 52501
2010-09-20 18:52:52 +00:00
Mike Blumenkrantz
5775219503
check return of ssl_server_prepare
...
SVN revision: 52423
2010-09-18 19:29:43 +00:00
Mike Blumenkrantz
4239d5d67f
giant cleanups/rewrites which are unnoticeable to users:
...
*client->server renamed client->host_server to clarify ambiguity
*ecore_con_ssl_client_prepare.* killed off because it was useless and wrong
*openssl generates only one SSL_CTX per server now instead of a new one for each client, which is broken/unnecessary/wasteful
**as a result, certificate loading is now only done once
**additionally this will save a very large amount of memory and avoid unnecessary/broken refcounting
*ecore_con_ssl_server_prepare.* rewritten to actually be useful instead of just a lazy way to null pointers
**all SSL_CTX code now goes here^
*some formatting fixes
*internal function renames
SVN revision: 52422
2010-09-18 19:26:05 +00:00
Mike Blumenkrantz
f62bcf1ff1
switch private struct members from char bitfields to Eina_Bool bitfields
...
no noticeable difference
SVN revision: 52399
2010-09-18 06:30:13 +00:00