Bug 2492: assertion failed: Server.cc:70: "!requestBodySource"
swanSong should set the pipe to NULL after stopping
consumption. There is even a convenience/safety method to do both in one call.
The attached patch replaces raw pipe->stop*() calls with convenience/safety
wrappers.
{
// get rid of our piping obligations
if (requestBodySource != NULL)
- requestBodySource->clearConsumer();
+ stopConsumingFrom(requestBodySource);
#if USE_ADAPTATION
cleanAdaptation();
cbdataReferenceDone(port);
- if (bodyPipe != NULL) {
- bodyPipe->clearProducer(false);
- bodyPipe = NULL; // refcounted
- }
+ if (bodyPipe != NULL)
+ stopProducingFor(bodyPipe, false);
}
/**