Skip to content
Tcl Source Code History Of Ticket d22dc7e9ca
Login

History Of Ticket d22dc7e9ca

Artifacts Associated With Ticket d22dc7e9ca

  1. Ticket change [2ca2c53187] (rid 257679) by serhiy.storchaka on 2026-10-12 08:41:35:

    1. cmimetype initialized to: "text/x-fossil-wiki"
    2. comment initialized to:
      On illumos (OpenIndiana), a non-blocking <code>connect()</code> to a local listener
      succeeds at once instead of returning EINPROGRESS; on DragonFly this happens for IPv6
      (<code>::1</code>). <code>TcpConnect()</code> makes the socket non-blocking for
      <code>socket -async</code> but restores the blocking mode only when the connect
      finishes in the background. So after such an immediate connect the socket stays
      non-blocking while the channel is blocking, and a blocking <code>gets</code> returns
      an empty string at once. This fails socket-14.7.0 and 14.7.1 on illumos and
      socket-14.7.1 on DragonFly.
      
      This is a regression of [219061] (HP-UX, fixed in 8.3.1 by resetting the socket to
      blocking mode when the connect succeeds at once). Since the 2011 rework the
      blocking mode, cached since [3401422], is restored only after a connect finishing in
      the background; [3428753] fixed only the flag for connections completing at once.
      
      Proposed fix in branch [/timeline?r=unix-async-connect-immediate-success|unix-async-connect-immediate-success].
      
    3. foundin initialized to: "9.1.0"
    4. login: "serhiy.storchaka"
    5. priority initialized to: "5 Medium"
    6. resolution initialized to: "None"
    7. severity initialized to: "Minor"
    8. status initialized to: "Open"
    9. submitter initialized to: "serhiy.storchaka"
    10. subsystem initialized to: "27. Channel Types"
    11. title initialized to:
      socket -async leaves the socket non-blocking when the connect succeeds at once
      
    12. type initialized to: "Bug"
  2. Ticket change [de82dcfccc] (rid 257680) by serhiy.storchaka on 2026-10-12 08:44:36:

    1. foundin changed to: "8.6.18, 9.0.5, 9.1.0"
    2. login: "serhiy.storchaka"
  3. Ticket change [65a92a358d] (rid 257899) by jan.nijtmans on 2026-10-13 12:23:54:

    1. assignee changed to: "jan.nijtmans"
    2. closedate changed to: "2461327.0166012617"
    3. closer changed to: "jan.nijtmans"
    4. comment changed to:
      On illumos (OpenIndiana), a non-blocking <code>connect()</code> to a local listener
      succeeds at once instead of returning EINPROGRESS; on DragonFly this happens for IPv6
      (<code>::1</code>). <code>TcpConnect()</code> makes the socket non-blocking for
      <code>socket -async</code> but restores the blocking mode only when the connect
      finishes in the background. So after such an immediate connect the socket stays
      non-blocking while the channel is blocking, and a blocking <code>gets</code> returns
      an empty string at once. This fails socket-14.7.0 and 14.7.1 on illumos and
      socket-14.7.1 on DragonFly.
      
      This is a regression of [219061] (HP-UX, fixed in 8.3.1 by resetting the socket to
      blocking mode when the connect succeeds at once). Since the 2011 rework the
      blocking mode, cached since [3401422], is restored only after a connect finishing in
      the background; [3428753] fixed only the flag for connections completing at once.
      
      Proposed fix in branch [/timeline?r=unix-async-connect-immediate-success|unix-async-connect-immediate-success].
      
    5. icomment:
      Fixed in [6d02d5f8a6|trunk], core-9-0-branch and core-8-6-branch
      
    6. login: "jan.nijtmans"
    7. mimetype: "text/x-fossil-wiki"
    8. resolution changed to: "Fixed"
    9. status changed to: "Closed"