Mercurial > ~darius > hgwebdir.cgi > wh1080
diff db.c @ 3:dc5ff2a1ed81
Be smarter about retries.
If the interrupt endpoint can't be read 100 times then retry the whole request.
author | Daniel O'Connor <darius@dons.net.au> |
---|---|
date | Wed, 10 Feb 2010 11:33:27 +1030 |
parents | 9da35e705144 |
children | f561c7f130a0 |
line wrap: on
line diff
--- a/db.c Tue Feb 09 13:48:52 2010 +1030 +++ b/db.c Wed Feb 10 11:33:27 2010 +1030 @@ -161,6 +161,7 @@ if (! config.db) config.db = "weather"; +#if 0 if (! mysql_init (mysql)) { fprintf (stderr, "Can't initialize MySQL\n"); @@ -244,6 +245,7 @@ config.db_table = mycopy (mysql_row [col++]); /* table */ config.php_header = mycopy (mysql_row [col++]); /* php header file with weather data */ config.comparefile = mycopy (mysql_row [col++]); /* file to compare local weather stations */ +#endif return 0; /* success */ }