Victor Sokolov
69c7d2f117
IMG-76: new linter config & fixes ( #1587 )
...
* IMG-76: new linter config & fixes
* Upgrade golangci-lint to 2.7.2
2025-12-10 13:46:22 +01:00
Sergei Aleksandrovich
e33254005d
Refactored errors ( #1578 )
...
* Refactored errors
* Make monitoring and errorreport accept `errctx.Error` instead of `error`
* Add server.Error; Remove category from errctx; Make HTTP handlers respond with *server.Error
* Remove stackSkip from errctx.Wrap; Add errctx.WrapWithStackSkip
2025-11-20 01:26:21 +06:00
Victor Sokolov
ef237b0585
newRequest signature updated ( #1573 )
...
* newRequest signature updated
* Remove uselsess ReadOnly params
* asyncbuffer.NewReadFull
* Ingore .well-known
* Fixed configuration bugs
* Fixed config/transport env var name
* Remove empty cachebuster option
2025-11-13 12:28:05 +01:00
DarthSim
6a87fb2a94
Release asyncbuffer pause after detectiong image type
2025-10-31 20:46:34 +06:00
DarthSim
0b7f79d220
Stabilize asyncbuffer.Cond test
2025-10-30 21:23:48 +03:00
DarthSim
89821daa9f
Migrate from logrus to log/slog
2025-09-21 20:13:27 +06:00
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