trafficserver-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From James Peach <jamespe...@me.com>
Subject inconsistent read IOBuffer results
Date Sun, 01 Jan 2012 06:07:36 GMT
Hi all,

In my proxy code, I have something that looks roughly like this:

	if (TSIOBufferReaderAvail(reader) >= 10) {
		blk = TSIOBufferStart(buffer);
    		ptr = (const uint8_t *)TSIOBufferBlockReadStart(blk, reader, &nbytes);

		TSReleaseAssert(nbytes >= 10);
	}

Occasionally, the assertion will trigger; is that something that I should expect and handle?

cheers,
James

Mime
View raw message