tractor icon indicating copy to clipboard operation
tractor copied to clipboard

UDS tpt backend breaks windows on import..

Open goodboy opened this issue 4 months ago • 0 comments

Apparently us linux heads totally forgot (specifically in #375) that windows doesn't have (obvious) support for unix-domain-sockets, though TIL apparently there is/has-been support ?? (for a long time)

To start we likely just want to fix the immediate crash-on-import

Bp

So for that we should prolly do all of,


On the topic of UDS support in the windows kernel, this blog post claims support was added "Beginning in Insider Build 17063"..

That build page further states,

Unix style sockets (AF_UNIX) are available on Windows AF_UNIX is an address family which has enabled inter-process communication on Unix for countless years. The windows equivalent is named pipes, which offers similar facilities. Based on user feedback, we heard that you’d like an easier path when porting tools relying on AF_UNIX to Windows. As a result, two Win32 processes can now use the AF_UNIX address family over Winsock API to communicate with each other. Read this blog for more details.

and the blog post claims and/or links these further resources:

  • only TCP-like "reliable" use is supported per,

    Currently, the support only exists for the stream (SOCK_STREAM) socket type, which is a connection-oriented protocol for one-to-one communication. Support for the datagram (SOCK_DGRAM) can be considered in future depending on the adoption, feedback and scenarios.

    • we [are already using this type] afaik, so we-should-be-gud?
  • cpython has for a long while talked support, but it's been super slow moving..
    • longstanding feat-req: https://github.com/python/cpython/issues/77589
      • 2024 summary comment is https://github.com/python/cpython/issues/77589#issuecomment-1963245972
      • latest necro-bump from 2025 is https://github.com/python/cpython/issues/77589#issuecomment-2834722114
    • recent WIP patch => https://github.com/python/cpython/pull/137420
      • latest request for review: https://github.com/python/cpython/pull/137420#issuecomment-3175435577

goodboy avatar Sep 30 '25 19:09 goodboy