--------------------- PatchSet 1865 Date: 2005/09/24 04:51:59 Author: rousskov Branch: squid3-icap Tag: (none) Log: - ICAPXaction tries to throw exceptions (explicitly or via Must()) instead of using assert() and fatal(). This is an experiment. Members: src/ICAPXaction.cc:1.1.2.26->1.1.2.27 Index: squid3/src/ICAPXaction.cc =================================================================== RCS file: /cvsroot/squid-sf//squid3/src/Attic/ICAPXaction.cc,v retrieving revision 1.1.2.26 retrieving revision 1.1.2.27 diff -u -r1.1.2.26 -r1.1.2.27 --- squid3/src/ICAPXaction.cc 23 Sep 2005 23:11:58 -0000 1.1.2.26 +++ squid3/src/ICAPXaction.cc 24 Sep 2005 04:51:59 -0000 1.1.2.27 @@ -448,7 +448,7 @@ } else if (gotEncapsulated("req-hdr")) { adapted->data->header = new HttpRequest; } else - fatal("Neither res-hdr nor req-hdr in maybeAllocateHttpMsg()"); + throw TexcHere("Neither res-hdr nor req-hdr in maybeAllocateHttpMsg()"); } void ICAPXaction::parseHeaders()