~mdw
/
fwd
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
conf.h, scan.h: Remove dead header files.
[fwd]
/
blast.c
diff --git
a/blast.c
b/blast.c
index
597263e
..
60ef0f7
100644
(file)
--- a/
blast.c
+++ b/
blast.c
@@
-112,13
+112,14
@@
static void newconn(blast *b)
goto fail;
gettimeofday(&tv, 0);
TV_ADD(&tv, &tv, &ctv);
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;
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:
return;
fail:
+ sel_rmtimer(&b->t);
backoff(b);
}
backoff(b);
}