forked from enlightenment/efl
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:
parent
714401f1c3
commit
16cbbb202f
|
@ -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
|
2013-05-24 Guillaume Friloux
|
||||||
* Fix use of ecore_con_server_client_limit_set() (counter never
|
* Fix use of ecore_con_server_client_limit_set() (counter never
|
||||||
decreased).
|
decreased).
|
||||||
|
|
2
NEWS
2
NEWS
|
@ -278,3 +278,5 @@ Fixes:
|
||||||
connections even if you sent data.
|
connections even if you sent data.
|
||||||
* Fix cl->start_time (initialization missing). So now
|
* Fix cl->start_time (initialization missing). So now
|
||||||
ecore_con_client_uptime_get() is working.
|
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.
|
||||||
|
|
|
@ -364,6 +364,7 @@ ecore_con_server_add(Ecore_Con_Type compl_type,
|
||||||
if (!svr->name)
|
if (!svr->name)
|
||||||
goto error;
|
goto error;
|
||||||
|
|
||||||
|
svr->start_time = ecore_time_get();
|
||||||
svr->type = compl_type;
|
svr->type = compl_type;
|
||||||
svr->port = port;
|
svr->port = port;
|
||||||
svr->data = (void *)data;
|
svr->data = (void *)data;
|
||||||
|
|
Loading…
Reference in New Issue