Refactor database initialisation in feedlog.pl.
* Move database initialisation to a separate function. * (Re-)try to connect every five seconds (instead of going into an endless loop) and log successful (re-)connections. * Log postings that are dropped due to database failures to syslog (Message-ID) for recovery. * If the connection to the database is lost, try to recover it (every five seconds) and try again to write the pending data. * Input will be buffered automatically by INN until feedlog is able to process it (see man 5 newsfeeds). Fixes #30, #31. Signed-off-by: Thomas Hochstein <thh@inter.net>
This commit is contained in:
parent
c3973e7d0d
commit
98563c619e
2 changed files with 52 additions and 14 deletions
3
doc/TODO
3
doc/TODO
|
|
@ -46,9 +46,6 @@ Bug numbers refer to the Mantis issue tracker at <http://bugs.th-h.de/>.
|
|||
- General tests and optimisations
|
||||
|
||||
+ feedlog.pl
|
||||
- Gracefully handle interruptions to database connection, at least log
|
||||
lost postings (Bug #30).
|
||||
- Buffer output that cannot be written to database (Bug #31).
|
||||
- Add / enhance / test error handling
|
||||
- General tests and optimisations
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue