ecore_con: Server start time was not initialized correctly

ecore_con_event_server_add() is never called (at least not in the
standard TCP connection case, so initialize svr->start_time in
ecore_con_server_add(). This shouldn't regress any other behaviour as
this is done at the very beginning and any later change to start_time
will still happen.

Signed-off-by: Daniel Willmann <d.willmann@samsung.com>
This commit is contained in:
Daniel Willmann 2013-05-24 16:06:51 +01:00
parent 714401f1c3
commit 16cbbb202f
3 changed files with 7 additions and 0 deletions

View File

@ -1,3 +1,7 @@
2013-05-24 Daniel Willmann
* Fix srv->start_time (initialization missing). So now
ecore_con_server_uptime_get() is working for plain TCP connections.
2013-05-24 Guillaume Friloux
* Fix use of ecore_con_server_client_limit_set() (counter never
decreased).

2
NEWS
View File

@ -278,3 +278,5 @@ Fixes:
connections even if you sent data.
* Fix cl->start_time (initialization missing). So now
ecore_con_client_uptime_get() is working.
* Fix srv->start_time (initialization missing). So now
ecore_con_server_uptime_get() is working for plain TCP connections.

View File

@ -364,6 +364,7 @@ ecore_con_server_add(Ecore_Con_Type compl_type,
if (!svr->name)
goto error;
svr->start_time = ecore_time_get();
svr->type = compl_type;
svr->port = port;
svr->data = (void *)data;