mirror of
https://github.com/slurdge/goeland.git
synced 2026-11-11 13:13:58 +00:00
[PR #384] [MERGED] fix: close Miniflux mark-as-read response bodies #377
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: slurdge/goeland#377
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/slurdge/goeland/pull/384
Author: @bensynapse
Created: 10/7/2026
Status: ✅ Merged
Merged: 10/7/2026
Merged by: @slurdge
Base:
master← Head:fix-miniflux-response-close📝 Commits (1)
034c391fix: close Miniflux mark-as-read response bodies📊 Changes
2 files changed (+119 additions, -0 deletions)
View changed files
📝
internal/goeland/fetch/miniflux.go(+1 -0)➕
internal/goeland/fetch/miniflux_test.go(+118 -0)📄 Description
I run Live Tennis API.
With
mark-as-readenabled,fetchMinifluxleaves the PUT response body open. Its existing defer closes only the earlier GET response. Nonempty error responses keep connection resources until the client timeout.The PUT body now closes on both successful marks and unexpected HTTP statuses. Two local HTTP regressions fail before this fix and pass afterward. They also check GET body closure, entry parsing and the mark-as-read payload.
make test,go test -race -json ./...,make buildandgo vet ./...pass on Go 1.26.0. The race run passes all 132 test and subtest markers. ContainerizedGOFLAGS=-race make testalso passes on Go 1.26.8.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.