- Oct 29, 2015
-
-
Michal 'vorner' Vaner authored
Since TRUNCATE has the same problems as REFRESH MATERIALIZED VIEW.
-
Michal 'vorner' Vaner authored
-
Michal 'vorner' Vaner authored
-
Michal 'vorner' Vaner authored
Use a table & view to fill it with data instead of materialized view. It is similar in principle, but the table allows us to specify indices and updates concurrently, instead of locking the whole table.
-
- Oct 27, 2015
-
-
Michal 'vorner' Vaner authored
Wait until the DB starts accepting connections if it doesn't work at the beginning. Blocking.
-
Michal 'vorner' Vaner authored
Detect when a database connection dies and reinitialize it.
-
Michal 'vorner' Vaner authored
As it is supposed to be faster by dropping it, it shall release some resources in the server.
-
Michal 'vorner' Vaner authored
Recover from lost DB connection. Initialize a new one.
-
Michal 'vorner' Vaner authored
-
Michal 'vorner' Vaner authored
Disable the old connection without compression. It is no longer used, so don't sit on the port.
-
- Oct 20, 2015
-
-
Michal 'vorner' Vaner authored
Use sanity instead of assert. The advantage is it logs in a way that is sent to the server. It may help find the crash-bug there somewhere.
-
Michal 'vorner' Vaner authored
-
- Oct 14, 2015
-
-
Michal 'vorner' Vaner authored
Do the commit at the end. There's nothing gained by commiting during the read.
-
- Oct 13, 2015
-
-
Michal 'vorner' Vaner authored
-
Michal 'vorner' Vaner authored
As the flag is very slow during the updates.
-
Michal 'vorner' Vaner authored
If the database is very slow or blocked somehow, run only one instance. There's no point in running several in a row when it unblocks. Also, such thing stresses the DB unnecessarily.
-
Michal 'vorner' Vaner authored
If it is already running, don't start another instance. Or, more exactly, terminate it right away.
-
- Oct 12, 2015
-
-
Michal 'vorner' Vaner authored
Each item of the biflows table is updated once during its life, so leave space for the updated entry there.
-
- Sep 30, 2015
-
-
Michal 'vorner' Vaner authored
Fix bug causing the fake log to send after each event.
-
- Sep 23, 2015
-
-
Michal 'vorner' Vaner authored
-
Michal 'vorner' Vaner authored
There seems to be some stack corruption. It shouldn't possibly in the signal handler, but rewrite it all the same.
-
- Sep 16, 2015
-
-
Michal 'vorner' Vaner authored
-
Michal 'vorner' Vaner authored
Call gdb on self to obtain backtrace and other info and put it to logs.
-
Michal 'vorner' Vaner authored
-
- Sep 14, 2015
-
-
Michal 'vorner' Vaner authored
-
Michal 'vorner' Vaner authored
It timeouts a lot. See if increasing would help.
-
- Sep 02, 2015
-
-
Michal 'vorner' Vaner authored
Include IP addresses of some TLD DNS servers often used for malware. Tag them in the database.
-
- Sep 01, 2015
-
-
Michal 'vorner' Vaner authored
-
- Aug 31, 2015
-
-
Michal 'vorner' Vaner authored
Disconnect from DB for the time WHOIS queries are running. And try to die in case of timeout, since the whois_query seems not to be doing that.
-
- Aug 27, 2015
-
-
Michal 'vorner' Vaner authored
-
- Aug 26, 2015
-
-
Michal 'vorner' Vaner authored
-
- Aug 17, 2015
-
-
Michal 'vorner' Vaner authored
Make sure the routers that have only firewall activity aren't skipped over due to complexities in the query.
-
- Aug 14, 2015
-
-
Robin Obůrka authored
-
Robin Obůrka authored
-
- Aug 13, 2015
-
-
Michal 'vorner' Vaner authored
-
Michal 'vorner' Vaner authored
-
Michal 'vorner' Vaner authored
Don't think you're online unless you get a confirmation from the server.
-
Michal 'vorner' Vaner authored
Use sanity() instead of several cases of assert(), die() or abort().
-
Michal 'vorner' Vaner authored
Similar to assert, but with a message and not possible to exclude from compilation. This is better for checking outputs, for example.
-
- Aug 12, 2015
-
-
Michal 'vorner' Vaner authored
Since it signals broken message by returning NULL, not by calling die directly.
-