Skip to content
Tcl Source Code History Of Ticket 7cf7cce423
Login

History Of Ticket 7cf7cce423

Artifacts Associated With Ticket 7cf7cce423

  1. Ticket change [ed0826597b] (rid 185351) by sebres on 2020-08-10 15:38:12:

    1. assignee initialized to: "nobody"
    2. closer initialized to: "nobody"
    3. cmimetype initialized to: "text/x-fossil-wiki"
    4. comment initialized to:
      Evaluation of <code>socket -async $host $port</code> can hang sporadically on windows.
      Further investigation shows that this really hang (freezes completely) in <code>CreateSocketAddress</code> when executing <code>gethostbyname</code>.
      This is not a resolve issue, since it's affected by localhost also and it does not return after timeout, so causes total freeze in calling thread.
      
      The issue is extremely sporadic, but it is better reproducible on Windows 10 box with several tcl-workers simultaneously executing <code>socket -async localhost $port</code> in the cycle.
      
      I think this could be also a reason for other sporadically hanging issues, like [e484a8407c] or [1adeb65446], at least partially (for test cases involving socket calls).
      
      Related to [https://docs.microsoft.com/en-us/windows/win32/api/winsock/nf-winsock-gethostbyname|MS documentation]:
      <i><blockquote>Developers creating Windows Sockets 2 applications are urged to use the <code>getaddrinfo</code> function instead of <code>gethostbyname</code>.</blockquote></i>
      
      And since [7e814eaa84] we're using Winsock 2.2 API, it must be fixed.<br/>
      Anyway on 8.6 using <code>getaddrinfo</code> this behavior is not reproducible at all.
      
    5. foundin initialized to: "8.5"
    6. is_private initialized to: "0"
    7. login: "sebres"
    8. priority initialized to: "5 Medium"
    9. resolution initialized to: "None"
    10. severity initialized to: "Critical"
    11. status initialized to: "Open"
    12. submitter initialized to: "sebres"
    13. subsystem initialized to: "25. Channel System"
    14. title initialized to:
      windows: `socket -async localhost $port` can hang sporadically in gethostbyname
      
    15. type initialized to: "Bug"
  2. Ticket change [beb100c670] (rid 185352) by sebres on 2020-08-10 15:38:59:

    1. assignee changed to: "sebres"
    2. login: "sebres"
    3. mimetype: "text/plain"
    4. priority changed to: "9 Immediate"
  3. Ticket change [6d44ee7ee7] (rid 185359) by sebres on 2020-08-10 16:18:42:

    1. closedate changed to: "2459072.17965583"
    2. closer changed to: "sebres"
    3. icomment: "Fixed in [ebf745562a] (for 8.5 only)."
    4. login: "sebres"
    5. mimetype: "text/x-fossil-wiki"
    6. resolution changed to: "Fixed"
    7. status changed to: "Closed"