Permalink
Browse files

moar bl and bugs

  • Loading branch information...
1 parent 95cbc92 commit b3566b9aef3257bedd856ade60fe7489ec414e2c @thejh committed May 29, 2012
Showing with 7 additions and 2 deletions.
  1. +5 −1 conf/domains.blacklist
  2. +2 −1 src/main.c
View
@@ -1,5 +1,4 @@
platform.twitter.com
-platform.linkedin.com
facebook.net
chartbeat.net
crwdcntrl.net
@@ -24,3 +23,8 @@ bkrtx.com
googlesyndication.com
clicktale.com
clicktale.net
+graph.facebook.com
+linkedin.com
+gigya.com
+marketo.net
+api.twitter.com
View
@@ -218,8 +218,8 @@ void kill_client(struct client_fd_watcher *client) {
client->agent->client = NULL;
kill_agent(client->agent);
}
- ev_io_stop(ev_default_loop(0), &client->watcher);
outstream_nuke(&client->outstream);
+ ev_io_stop(ev_default_loop(0), &client->watcher);
free(client->url);
client->url = NULL;
free_headers(&client->request_headers);
@@ -610,6 +610,7 @@ void process_client_data(struct client_fd_watcher *w, char *data, int read_data)
}
void client_fd_data_cb(struct ev_loop *loop, struct ev_io *watcher, int revents) {
+ assert(watcher->active == 1 /* detect freed watchers */);
printd("client_fd_data_cb\n");
struct client_fd_watcher *w = (struct client_fd_watcher *) watcher;
assert(w->parser_paused == 0); // if the parser is paused, the IO watcher should be frozen

0 comments on commit b3566b9

Please sign in to comment.