Overview
| Artifact ID: | a5fbb98b1671116513cbb8bd5f8853b2b10303316d81987d064aeeb7199388a8 |
|---|---|
| Ticket: | 6978c01b652ac87cfc7913f5e534825f15824768
Channel encoding difference 8.6 <-> 9.0 |
| User & Date: | jan.nijtmans on 2022-09-11 21:00:57 |
Changes
- icomment:
I'm sorry, but checkin [e67a247dd4] still doesn't fulfull my expectation of what should happen. I adapted thestcase io-75.5, testing for both the written output (which was correct before the fix) and the exception thrown. With this fix, the expected output is missing. This shows that channel handling is a bit more complicated than expected. For example, what if the 7th byte of a sequence is in error, but after writing 4 bytes to the channel another error occurs? Then - I would say - the error that occurs first in the byte stream (not the error which is discovered first) should win. So, after the encoding error is detected, the channel should continue to operate as normal, only it shouldn't read in new bytes, just write out the bytes as far as they were encoded. As soon as all bytes are handled there are two possibilities: 1) all bytes were written correctly, then the exception should be thrown after all. 2) the write resulted in some error, than that exception should be thrown .... Hope this helps.
- login: "jan.nijtmans"
- mimetype: "text/x-fossil-wiki"