[PR #6108] [MERGED] server: fix json marshalling of downloadBlobPart #37891

Closed
opened 2026-04-22 22:33:41 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/6108
Author: @bmizerany
Created: 7/31/2024
Status: Merged
Merged: 7/31/2024
Merged by: @bmizerany

Base: mainHead: bmizerany/fixresumedownload


📝 Commits (1)

  • ae6efbf server: fix json marshalling of downloadBlobPart

📊 Changes

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

View changed files

📝 server/download.go (+30 -0)

📄 Description

The json marshalling of downloadBlobPart was incorrect and racey. This fixes it by implementing customer json marshalling for downloadBlobPart which correctly handles serialization of shared memory.


🔄 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/6108 **Author:** [@bmizerany](https://github.com/bmizerany) **Created:** 7/31/2024 **Status:** ✅ Merged **Merged:** 7/31/2024 **Merged by:** [@bmizerany](https://github.com/bmizerany) **Base:** `main` ← **Head:** `bmizerany/fixresumedownload` --- ### 📝 Commits (1) - [`ae6efbf`](https://github.com/ollama/ollama/commit/ae6efbfeacc38e773fd2557977560951bfb44d44) server: fix json marshalling of downloadBlobPart ### 📊 Changes **1 file changed** (+30 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `server/download.go` (+30 -0) </details> ### 📄 Description The json marshalling of downloadBlobPart was incorrect and racey. This fixes it by implementing customer json marshalling for downloadBlobPart which correctly handles serialization of shared memory. --- <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-22 22:33:41 -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#37891