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

Re: [RFC 0/3] imap-send curl tunnelling support

From
Daniel Stenberg <daniel@haxx.se>
Date
Aug 24, 2017, 21:22 UTC
Message-ID
<alpine.DEB.2.20.1708242302210.24274@tvnag.unkk.fr>
In-Reply-To
<20170824143044.tu375seveoktinlm@sigill.intra.peff.net>
On Thu, 24 Aug 2017, Jeff King wrote:
Show 7 quoted lines
> Oh good. While I have you here, have you given any thought to a curl handle 
> that has two half-duplex file descriptors, rather than a single full-duplex 
> socket? That would let us tunnel over pipes rather than worrying about the 
> portability of socketpair().
>
> I suspect it would be quite complicated, because I imagine that lots of 
> internal bits of curl assume there's a single descriptor.

Yeah, it would take quite some surgery deep down in the heart of curl to implement something like that. It wouldn't call it impossible but it would take a certain level of determination and amount of time. I presume the descriptor-pair would be passed in via an API so it wouldn't affect the connect phase. We also have decent test coverage, making an overhaul like this a less scary thought - as if the existing tests say OK we can be fairly certain there aren't any major regressions...

(I may also have forgotten some tiny detail for the moment that makes it very hard.)

>>  / daniel.haxx.se (who landed the IMAP PREAUTH fix in curl)
>
> Don't you land most of the fixes in curl? :)
I do, but I don't expect readers of the git list to know that!
-- 
  / daniel.haxx.se
Previous: Jeff KingNext: Nicolas Morey-Chaisemartin
Message 19 of 22 in “[RFC 0/3] imap-send curl tunnelling support”
  1. Nicolas Morey-ChaisemartinAug 9, 2017
  2. 1/3 imap-send: move tunnel setup to its own functionNicolas Morey-Chaisemartin, Aug 9, 2017
  3. 3/3 imap_send: add support for curl over tunnelNicolas Morey-Chaisemartin, Aug 9, 2017
  4. 2/3 imap-send: use a socketpair instead of pipe to communicate with the tunnelNicolas Morey-Chaisemartin, Aug 9, 2017
  5. Nicolas Morey-ChaisemartinAug 15, 2017
  6. Stefan BellerAug 15, 2017
  7. Johannes SchindelinAug 16, 2017
  8. Nicolas Morey-ChaisemartinAug 21, 2017
  9. Johannes SixtAug 22, 2017
  10. Nicolas Morey-ChaisemartinAug 22, 2017
  11. Johannes SchindelinAug 23, 2017
  12. Jeff KingAug 16, 2017
  13. Nicolas Morey-ChaisemartinAug 21, 2017
  14. Jeff KingAug 23, 2017
  15. Nicolas Morey-ChaisemartinAug 24, 2017
  16. Jeff KingAug 24, 2017
  17. Daniel StenbergAug 24, 2017
  18. Jeff KingAug 24, 2017
  19. Daniel StenbergAug 24, 2017
  20. Nicolas Morey-ChaisemartinAug 24, 2017
  21. Jeff KingAug 24, 2017
  22. Jeff KingAug 16, 2017

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.