Martin Mares [Wed, 16 Nov 2005 13:54:55 +0000 (13:54 +0000)]
More work on the multiplexer:
o Changed configuration of search servers and groups, added stand-alone
declarations of groups, merging groups and the default route.
o Search servers now have identifiers to avoid cluttering logs and
parameters by hostnames and ports.
o MUXSS can refer to a search server, group or merging group.
o Bug fix in pinging.
o mux -s now uses the screen width to list databases, not groups.
o Added mux --testconfig, which also dumps all known route objects.
Martin Mares [Tue, 15 Nov 2005 18:42:41 +0000 (18:42 +0000)]
Mux pings now monitor which versions of which databases are offered
by which search servers. Live search servers are also pinged ocassionally
to check that the versions still match.
Martin Mares [Mon, 14 Nov 2005 20:06:49 +0000 (20:06 +0000)]
Changed main_loop shutdown logic once again. The former mechanism with
a single global main_shutdown variable was too inflexible. I have given
all hooks a possibility to either invoke an immediate shutdown or a "soft"
shutdown which is activated if all hooks agree on it (the idea is that
different parts of a single program can have their local opinion on whether
there is more to do or not).
Martin Mares [Sun, 2 Oct 2005 13:10:42 +0000 (13:10 +0000)]
Added a single-linked double-ended list module. Mostly syntactic sugar.
The SLIST_WALK_DELSAFE macro has well-defined semantics of the auxilliary
variable: it's a pointer to the previous list item or to the list head,
making it possible to delete the current item efficiently by calling
slist_remove_after().
Unfortunately, I failed to write SLIST_FOR_EACH_DELSAFE, C syntax doesn't
seem to be flexible enough for that.
Martin Mares [Sun, 2 Oct 2005 10:56:25 +0000 (10:56 +0000)]
Added a table of prime numbers. (I want to use prime numbers for hash table
sizes, but since the hash tables will be short-lived, I don't want to spend
much time by calculating primes.)
Martin Mares [Tue, 20 Sep 2005 20:29:29 +0000 (20:29 +0000)]
Merged bucket file scaling patches from rel-3-7-pre1:
Report failure if the bucket file grows too large.
Report oversized bucket files as fatal errors during bucket fsck.
Made OBUCK_SHIFT a configurable parameter. Also changed OBUCK_INCOMPLETE_MAGIC,
the original value was an evident typo (fortunately this value should never
appear in valid bucket files, so we are free to change it).
Martin Mares [Tue, 20 Sep 2005 20:11:08 +0000 (20:11 +0000)]
Minor cleanup of KMP:
o Replaced translation macro by input reading macro.
o Moved reading of tagged streams to sherlock/tagged-text.h (it contains
reading functions for completely non-related stream types anyway)
o CONTROL_CHAR renamed to KMP_CONTROL_CHAR.
o Tried to improve comments.
Martin Mares [Wed, 14 Sep 2005 09:19:17 +0000 (09:19 +0000)]
Another thing about the C standard I didn't know: passing a va_list to
a library function (e.g., snprintf()) can destroy it. Need to call va_copy() here.
Martin Mares [Sat, 9 Jul 2005 09:32:45 +0000 (09:32 +0000)]
When we encounter an URL with multiple @'s, the first one should be treated
as the username separator and the subsequent ones automatically escaped.
Therefore, `http://a@b@c.cz/' is normalized as `http://a@b%40c.cz/'.
It's probably an invalid URL (have to check all the possible loopholes
in the spec yet :) ), but it occurs in the wild anyway, so let's try
to treat them with grace.
Robert Spalek [Thu, 30 Jun 2005 17:28:33 +0000 (17:28 +0000)]
added url_enescape_friendly() for cards.c: it prepares a printable version
of the URL (with interpretted spaces and delimiters, hence it cannot be
parsed back), but it does not convert characters above 0x7f so that the
target string is a valid utf-8 string
Robert Spalek [Thu, 30 Jun 2005 15:33:23 +0000 (15:33 +0000)]
second part of fixing URL printing: escape back all characters above 0x7f
note that it may happen that some incorrect words get highlighted after we
cut the escaped URL into words by lexmapper, but this is much better than
producing incorrect UTF-8 stream
Martin Mares [Thu, 16 Jun 2005 21:03:13 +0000 (21:03 +0000)]
Added hash functions for 64-bit integers.
hash_pointer() now uses either 32-bit or 64-bit hash depending on pointer size.
hashtable.h with an atomic key does the same.
Martin Mares [Sat, 28 May 2005 17:51:48 +0000 (17:51 +0000)]
Added switches for gcc-4.0. "-fstrict-aliasing" is now added only for
gcc 3.0 since 3.3 and newer turn in by default with -O2 or higher.
Added CWARNS_OFF, which turns off even the warnings which default to on.
Expect lots of warnings with gcc 4.0.0; some of them are caused by
compiler bugs (e.g., http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21800).
Martin Mares [Tue, 12 Apr 2005 22:13:36 +0000 (22:13 +0000)]
Another Big Move -- moved most files specific for centrum.cz to centrum/cz.
Finally got rid of CONFIG_MORFEO and introduced CONFIG_CENTRUM_DEBUG instead.
Martin Mares [Tue, 12 Apr 2005 18:42:41 +0000 (18:42 +0000)]
Distinguish between CONFIG_DEBUG and CONFIG_DEBUG_TOOLS in config files,
but in the Makefiles yet, because I want to keep the old config system
for a short while.