ry / ebb fork watch download tarball
public
Description: web server
Homepage: http://ebb.rubyforge.org
Clone URL: git://github.com/ry/ebb.git
Search Repo:
* ev_timer_init should initialize timeout to not repeat

before that change timeout was constantly repeated (again and againg...)
Radarek (author)
Thu Jul 03 10:15:39 -0700 2008
commit  15a07fc8b9d6e3fe104814efa2c453dea8766f0a
tree    5bf22b6f8fe41e0d3519cd4ea8251e285481eb6e
parent  9702df985ca896c15feb7a0a2699c21caddf7221
...
276
277
278
279
 
280
281
282
...
276
277
278
 
279
280
281
282
0
@@ -276,7 +276,7 @@ static void client_init(ebb_client *client)
0
   ev_io_start(client->server->loop, &client->read_watcher);
0
   
0
   client->timeout_watcher.data = client;
0
- ev_timer_init(&client->timeout_watcher, on_timeout, EBB_TIMEOUT, EBB_TIMEOUT);
0
+ ev_timer_init(&client->timeout_watcher, on_timeout, EBB_TIMEOUT, 0);
0
   ev_timer_start(client->server->loop, &client->timeout_watcher);
0
 }
0
 

Comments

    No one has commented yet.