git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH v2 0/5] Avoid hang if curl needs eof twice + minor related improvements

From
JTJonathan Tan <jonathantanmy@google.com>
Date
Nov 15, 2023, 23:28 UTC
Message-ID
<20231115232824.2507648-1-jonathantanmy@google.com>
In-Reply-To
<CAGE_+C4mUw8U6YK0m6hRvcqriv4pWdsELpyRJBCY-LrdHjWwgw@mail.gmail.com>
Jiří Hruška <jirka@fud.cz> writes:
> Proposed changes split into several commits for clarity
> 
> Jiri Hruska (5):
>   remote-curl: avoid hang if curl asks for more data after eof

I've already reviewed this [1] so I'll summarize what I think of the rest.

[1] https://lore.kernel.org/git/20231115192027.2468887-1-jonathantanmy@google.com/
>   remote-curl: improve readability of curl callbacks
>   remote-curl: simplify rpc_out() - remove superfluous ifs
>   remote-curl: simplify rpc_out() - less nesting and rename
>   http: reset CURLOPT_POSTFIELDSIZE_LARGE between requests

Overall I can see how all of these make the code clearer, but in a long-lived project like Git where it is very common to look at code history to try to see why something was written the way it is, I'm a bit reluctant to include 2/5 and 4/5. I think 3/5 (removes an "if"), the part of 4/5 where we set "rpc.pos = 0;", and 5/5 (sets a parameter that one could expect to be set) have significant benefit and should be included, though. Having said that, I don't have strong opposition to including all of them.

Previous: Jiří HruškaNext: Jiří Hruška
Message 8 of 18 in “remote-curl: avoid hang if curl asks for more data after eof”
  1. remote-curl: avoid hang if curl asks for more data after eofJiří Hruška, Nov 13, 2023
  2. Jonathan TanNov 13, 2023
  3. Junio C HamanoNov 14, 2023
  4. Jiří HruškaNov 14, 2023
  5. Jiří HruškaNov 27, 2023
  6. Jiří HruškaNov 14, 2023
  7. 0/5 Avoid hang if curl needs eof twice + minor related improvementsJiří Hruška, Nov 15, 2023
  8. Jonathan TanNov 15, 2023
  9. Jiří HruškaNov 27, 2023
  10. Jonathan TanNov 27, 2023
  11. 2/5 remote-curl: improve readability of curl callbacksJiří Hruška, Nov 15, 2023
  12. 1/5 remote-curl: avoid hang if curl asks for more data after eofJiří Hruška, Nov 15, 2023
  13. Jonathan TanNov 15, 2023
  14. 3/5 remote-curl: simplify rpc_out() - remove superfluous ifsJiří Hruška, Nov 15, 2023
  15. 4/5 remote-curl: simplify rpc_out() - less nesting and renameJiří Hruška, Nov 15, 2023
  16. 5/5 http: reset CURLOPT_POSTFIELDSIZE_LARGE between requestsJiří Hruška, Nov 15, 2023
  17. Patrick SteinhardtNov 15, 2023
  18. Jiří HruškaNov 27, 2023

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.