Skip to content
Tcl Source Code History Of Ticket fe57ad096d97623e
Login

History Of Ticket fe57ad096d97623e

Artifacts Associated With Ticket fe57ad096d97623e

  1. Ticket change [ff452c18e6] (rid 190264) by kjnash on 2020-12-14 02:07:56:

    1. assignee initialized to: "nobody"
    2. closer initialized to: "nobody"
    3. cmimetype initialized to: "text/plain"
    4. comment initialized to:
      Test http-4.14 fails for tcl-8.6.11rc0, and also for tcl-8.6.10.
      
      The problem is the test's use of [info hostname] as the host name.  The system interprets this correctly when connecting to a port that has a listening socket.  When attempting to connect to a non-existent listener, the system reports [info hostname] as an "invalid argument" (perhaps because it has attempted and failed DNS lookup?).
      
      Using [socket] without the -async option, the problem can be seen at the command line:
      
      % socket 127.0.0.1 45678
      couldn't open socket: connection refused
      
      % socket localhost 45678
      couldn't open socket: connection refused
      
      % socket [info hostname] 45678
      couldn't open socket: invalid argument
      
      % socket [info hostname] 22 ;# works with a valid listening port
      sock2781730
      
      % info hostname
      argent.home
      
      File tests/http.test notes earlier problems with name resolution on OSX.  Name resolution is not the focus of the http package or its tests; so I suggest adopting the same solution as for OSX and setting the host name to "localhost" rather than [info hostname].
      
      Because the httpd simple server clobbers the value of HOST the change is mode in three files:
      * tests/http.test
      * tests/httpold.test
      * tests/httpd
      
    5. foundin initialized to: "8.6.11rc0"
    6. is_private initialized to: "0"
    7. login: "kjnash"
    8. priority initialized to: "5 Medium"
    9. private_contact initialized to: "a774b1f5653dc3360e29ea7d635a64e94c9f1dab"
    10. resolution initialized to: "None"
    11. severity initialized to: "Minor"
    12. status initialized to: "Open"
    13. submitter initialized to: "kjnash"
    14. subsystem initialized to: "29. http Package"
    15. title initialized to: "Fix test http-4.14 for tcl-8.6.11rc0"
    16. type initialized to: "Patch"
  2. Add attachment "fix-test-http-4.14.patch" [3d2d9cb7b1] (rid 190266) by kjnash on 2020-12-14 02:09:24.

  3. Ticket change [72605e0271] (rid 190280) by jan.nijtmans on 2020-12-14 08:15:12:

    1. assignee changed to: "jan.nijtmans"
    2. closedate changed to: "2459197.84389163"
    3. closer changed to: "jan.nijtmans"
    4. icomment:
      Fixed now in core-8-6-branch and up.
      
      Thanks for the analysis and fix!
      
    5. login: "jan.nijtmans"
    6. mimetype: "text/x-fossil-wiki"
    7. resolution changed to: "Fixed"
    8. severity changed to: "Important"
    9. status changed to: "Closed"