[PR #9402] [MERGED] server/internal/registry: implement CloseNotify and Flush (for now) #12948

Closed
opened 2026-04-13 00:13:29 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/9402
Author: @bmizerany
Created: 2/27/2025
Status: Merged
Merged: 2/27/2025
Merged by: @bmizerany

Base: mainHead: bmizerany/fixclosenotify


📝 Commits (1)

  • 5360cb0 server/internal/registry: implement CloseNotify and Flush (for now)

📊 Changes

1 file changed (+20 additions, -0 deletions)

View changed files

📝 server/internal/registry/server.go (+20 -0)

📄 Description

This fixes panics introduced in 2412adf42b when Gin ungracefully assumes that the http.ResponseWriter implements http.CloseNotifier and http.Flusher, which our new statusCodeRecorder does not. This is a temporary fix until we can pour the rest of the Gin out.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/ollama/ollama/pull/9402 **Author:** [@bmizerany](https://github.com/bmizerany) **Created:** 2/27/2025 **Status:** ✅ Merged **Merged:** 2/27/2025 **Merged by:** [@bmizerany](https://github.com/bmizerany) **Base:** `main` ← **Head:** `bmizerany/fixclosenotify` --- ### 📝 Commits (1) - [`5360cb0`](https://github.com/ollama/ollama/commit/5360cb0e3a8236ed6a5b5c6149d0a1543f1c7a54) server/internal/registry: implement CloseNotify and Flush (for now) ### 📊 Changes **1 file changed** (+20 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `server/internal/registry/server.go` (+20 -0) </details> ### 📄 Description This fixes panics introduced in 2412adf42b8380748ac79476e273f5b337c3b977 when Gin ungracefully assumes that the http.ResponseWriter implements http.CloseNotifier and http.Flusher, which our new statusCodeRecorder does not. This is a temporary fix until we can pour the rest of the Gin out. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-04-13 00:13:29 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#12948