]> git.ipfire.org Git - thirdparty/squid.git/commit
eCAP: Return unknown body size for bodies with unknown body sizes.
authorAlex Rousskov <rousskov@measurement-factory.com>
Mon, 21 Sep 2015 18:17:38 +0000 (12:17 -0600)
committerAlex Rousskov <rousskov@measurement-factory.com>
Mon, 21 Sep 2015 18:17:38 +0000 (12:17 -0600)
commit7e5aec8db700d4fe1b18f50e42c25c822b86b9dc
treeedb1ed24d84b09fdb671341dd3c74a4cc6477bac
parent89deb18612969e240f7d00be83eb6ce5961ff322
eCAP: Return unknown body size for bodies with unknown body sizes.

Previously, unsigned -1 size was returned for those bodies.
Old adapters relying on that buggy behavior will now throw:

  !"attempt to use unknown libecap::BodySize size"

Such adapters should check libecap::BodySize::known() before
using the libecap::Body::bodySize() value.
src/adaptation/ecap/MessageRep.cc