Commit Graph

12 Commits

Author SHA1 Message Date
Victor Sokolov
01327c1cce integration.Suite (#1518) 2025-09-09 16:25:45 +02:00
DarthSim
0d17d8f421 asyncbuffer: set io.ErrUnexpectedEOF before indicating that we finished reading 2025-08-29 21:19:55 +03:00
DarthSim
d38720a0b8 Wrap asyncbuffer and imageDataAsyncBuffer errors 2025-08-21 21:27:45 +06:00
DarthSim
0ddefe1b85 Add expected data length to asyncbuffer to allow seeking from the end without waiting for reader 2025-08-20 00:32:26 +06:00
DarthSim
c95725b12f Don't use io.ReadFull in io.Reader wrappers 2025-08-19 18:46:56 +06:00
DarthSim
c8b67610e4 Fix possible call to nil finishFn in asyncbuffer 2025-08-15 14:02:04 +03:00
Victor Sokolov
af890f8b71 IMG-46: Call finishFn on download finished (metrics) (#1487)
* Skip goes to processing

* Call finishFn on download finished

* defer DownloadFinished in DownloadSync
2025-08-15 12:43:57 +02:00
Victor Sokolov
e14e054471 DownloadSync/DownloadAsync (#1480)
* DownloadSync/DownloadAsync

* No bufpool in svg

* Added ImageData.Error()

* Header ordering in respondWithImage

* Check originData.Error only if processing failed

---------

Co-authored-by: DarthSim <darthsim@gmail.com>
2025-08-11 20:09:54 +06:00
DarthSim
e7187ea51f Stabilize asyncbuffer.Cond tests 2025-08-07 12:35:24 +03:00
Victor Sokolov
0015e88447 IMG-13: pauseThreshold in AsyncBuffer + close behaviour (#1477)
* pauseThreshold in AsyncBuffer

* Additional close() condition

* io.ReadCloser in buffer

* ticker + fixes

* Minor fixes for asyncbuffer

* Renamed ticker to cond

* warn if close of upstream reader failed

* ticker -> chunkCond

* Fix io.EOF behaviour
2025-08-06 18:45:53 +02:00
Victor Sokolov
efbea5fde5 New imagedata interface (#1471) 2025-07-31 18:18:13 +02:00
Victor Sokolov
0e0714b5a1 async reader + test (#1464) 2025-07-25 11:29:53 +02:00