ipc: accept max-connections on bare unix -ipcbind address #36795

pull Naomi-Gift wants to merge 1 commits into bitcoin:master from Naomi-Gift:doc-ipcbind-default-socket changing 2 files +5 −3
  1. Naomi-Gift commented at 7:54 PM on November 6, 2026: none

    Description

    This PR allows max-connections to work with a bare unix address in -ipcbind.

    Previously, unix,max-connections=8 was rejected, while unix:,max-connections=8 worked.

    This change makes both formats valid and consistent, making the option easier to use and avoiding unnecessary configuration errors.

    Testing

    • Added unit tests in ipc_tests.cpp. The tests pass with the fix and fail without it.
    • Tested -ipcbind=unix,max-connections=8 on regtest and confirmed that it creates 8 connection slots.

    Help text

    The original help text now works as written, so the proposed help text change was removed.

    Fixes #36657

  2. DrahtBot added the label Docs on Nov 6, 2026
  3. DrahtBot commented at 7:54 PM on November 6, 2026: contributor

    <!--e57a25ab6845829454e8d69fc972939a-->

    The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.

    <!--006a51241073e994b41acfe9ec718e94-->

    External sites

    <!--021abf342d371248e50ceaed478a90ca-->

    Reviews

    See the guideline and AI policy for information on the review process. A summary of reviews will appear here.

    <!--174a7506f384e20aa4161008e828411d-->

    Conflicts

    No conflicts as of last run.

    <!--5faf32d7da4f0f540f40219e4f7537a3-->

  4. enirox001 commented at 7:02 PM on November 7, 2026: contributor

    Thanks for looking into this. The doc change would help clarify things, but I’d prefer a change where the parser accepts unix,max-connections=x, with a test for it. Since unix already works for the default socket, I don’t see much benefit in requiring a colon just to limit the max connections. Supporting both forms would also make the existing help text work as written.

  5. ipc: accept max-connections on bare unix -ipcbind address
    Previously, unix,max-connections=8 was rejected, while unix:,max-connections=8 worked. This change makes both formats valid and consistent.
    
    Fixes #36657
    6e719250c9
  6. Naomi-Gift force-pushed on Nov 9, 2026
  7. Naomi-Gift renamed this:
    doc: show default socket example in -ipcbind help
    ipc: accept max-connections on bare unix -ipcbind address
    on Nov 9, 2026
  8. Naomi-Gift commented at 11:51 AM on November 9, 2026: none

    Thanks for the feedback, I've switched to fixing the parser and added a unit test to cover it. With this change, the original help text now works as written so there's no need to modify it.


github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-11-30 03:50 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me