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

Re: [RFC] Deal with HTTP 401 by requesting credentials.

From
Kevin Stange <kevin@steadfast.net>
Date
Jun 5, 2012, 16:41 UTC
Message-ID
<4FCE36C1.3010807@steadfast.net>
In-Reply-To
<20120605162824.GB20915@sigill.intra.peff.net>
On 06/05/2012 11:28 AM, Jeff King wrote:
Show 22 quoted lines
> On Fri, Jun 01, 2012 at 12:02:08PM -0500, Kevin Stange wrote:
> 
>>> The dumb-http push code is the only thing that does not go through
>>> http_request these days. So another option would be to refactor it to go
>>> through that central point. I took a brief look at this when I was
>>> updating the credential code a few months ago, but didn't consider it a
>>> priority, as most people should be using smart http these days. Is there
>>> a reason you can't use smart-http? It's significantly more efficient.
>>
>> Smart HTTP didn't come up in any of my Google searches.  With that as an
>> option, I might just drop this work now.  I'd rather see incomplete methods
>> that aren't recommended go away than further facilitate their use, personally.
> 
> Me too. I would love it if dumb http push just went away. It's extremely
> neglected, and has very few advantages over smart http (really, the only
> advantage is that the server does not need to run git). However, we do
> get bug reports on it occasionally, so I think people are still using
> it.
> 
> So far our approach has mostly been to prevent any serious regressions,
> and otherwise not worry too much about dragging it along with new
> features.

It seemed a lot of "guides" that I found while searching suggested using the "dumb" system. That may be why it remains in use. I can't imagine too many people have issues running a CGI to ensure everything works right.

Show 7 quoted lines
>> If I decide to continue working on this, I will keep these in mind.  I'm
>> pretty sure that if I can get smart HTTP working, there's no reason to even
>> bother with this from my perspective, unless you think there's substantial
>> value in it.
> 
> No, I don't think there's substantial value. If you can move to smart
> http, you are much better off.

I've gotten smart HTTP working perfectly. Thank you for pointing me to it. I am considering this resolved.

-- 
Kevin Stange
Chief Technology Officer
Steadfast Networks
http://steadfast.net
Phone: 312-602-2689 ext. 203 | Fax: 312-602-2688 | Cell: 312-320-5867
Previous: Jeff King
Message 8 of 8 in “[RFC] Deal with HTTP 401 by requesting credentials.”
  1. Kevin StangeMay 31, 2012
  2. Kevin StangeMay 31, 2012
  3. Jeff KingJun 1, 2012
  4. Junio C HamanoJun 1, 2012
  5. Jeff KingJun 5, 2012
  6. Kevin StangeJun 1, 2012
  7. Jeff KingJun 5, 2012
  8. Kevin StangeJun 5, 2012

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.