#include <mLib/alloc.h>
#include <mLib/conn.h>
+#include <mLib/macros.h>
#include <mLib/mdwopt.h>
#include <mLib/quis.h>
#include <mLib/report.h>
static sel_timer sec;
static unsigned count = 0;
-static void timers(void);
+static void IGNORABLE timers(void);
static void stats(struct timeval *tv, void *p)
{
}
puts("");
}
-
+
static void newconn(blast *b)
{
int fd = socket(PF_INET, SOCK_STREAM, 0);
goto fail;
gettimeofday(&tv, 0);
TV_ADD(&tv, &tv, &ctv);
+ sel_addtimer(&sel, &b->t, &tv, timeout, b);
if (conn_init(&b->c, &sel, fd, (struct sockaddr *)&sin, sizeof(sin),
connected, b))
goto fail;
- sel_addtimer(&sel, &b->t, &tv, timeout, b);
return;
fail:
+ sel_rmtimer(&b->t);
backoff(b);
}