Browse Source

[Fix] Another try to fix corruption during maps reload

tags/1.5.0
Vsevolod Stakhov 7 years ago
parent
commit
658cbe75e6
1 changed files with 9 additions and 2 deletions
  1. 9
    2
      src/libutil/map.c

+ 9
- 2
src/libutil/map.c View File

@@ -294,9 +294,16 @@ free_http_cbdata_dtor (gpointer p)
struct rspamd_map *map;

map = cbd->map;
cbd->stage = map_finished;
if (cbd->stage >= map_load_file) {
REF_RELEASE (cbd);
}
else {
/* We cannot terminate DNS requests sent */
cbd->stage = map_finished;
}

msg_warn_map ("connection with http server is terminated: worker is stopping");
REF_RELEASE (cbd);
}

/*

Loading…
Cancel
Save