Skip to content
Tcl Source Code History Of Ticket 578164ffffffffff
Login

History Of Ticket 578164ffffffffff

Artifacts Associated With Ticket 578164ffffffffff

  1. Ticket change [177cdba342] (rid 122505) by kennykb on 2002-07-06 17:59:23:

    1. assignee initialized to: "andreas_kupries"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      In the current HEAD, socket-2.4 appears not to be
      working owing to some sort of synchronization problem
      within the test case.
      
      
      ==== socket-2.4 tcp connection with server interface specified FAILED
      ==== Contents of test case:
      
          removeFile script
          set f [open $path(script) w]
          puts $f {
              set timer [after 2000 "set x done"]
              set f [socket -server accept -myaddr [info hostname] 0]
              proc accept {file addr port} {
                  global x
                  puts "[gets $file]"
                  close $file
                  set x done
              }
              puts ready
              puts [lindex [fconfigure $f -sockname] 2]
              vwait x
              after cancel $timer
              close $f
          }
          close $f
          set f [open "|[list $::tcltest::tcltest $path(script)]" r]
          gets $f x
          gets $f listen
          if {[catch {socket [info hostname] $listen} sock]} {
              set x $sock
          } else {
              puts $sock hello
              flush $sock
              lappend x [gets $f]
              close $sock
          }
          close $f
          set x
      
      ---- Result was:
      couldn't open socket: connection refused
      ---- Result should have been (exact matching):
      ready hello
      ==== socket-2.4 FAILED
      
    4. foundin initialized to: "obsolete: 8.4b1"
    5. priority initialized to: "5 Medium"
    6. resolution initialized to: "None"
    7. status initialized to: "Open"
    8. submitter initialized to: "kennykb"
    9. subsystem initialized to: "27. Channel Types"
    10. title initialized to: "socket-2.4 fails on WinNT"
    11. type initialized to: "Bug"
  2. Ticket change [af9631c37c] (rid 97840) by andreas_kupries on 2002-07-09 04:38:16:

    1. icomment:
      Logged In: YES 
      user_id=75003
      
      Sorry, I am unable to reproduce this on my Win2K system. 
      Does this happen for every run, or only now and then ? How 
      many server sockets are open on your system ? Maybe you 
      exceeded what the system allows.
      
      The only possible sync problem which might exist is the race 
      between reading the port number from the pipe and opening 
      the socket in the caller, and writing the port number and 
      entering the event loop in the server. I am unsure about this 
      because the server socket already does exist at that time 
      and maybe the OS buffers a connection request coming in, 
      before the event loop starts looking for such events.
      
      And this we should be able to avoid with a small delay 
      between 'gets $f listen' and the 'socket' command. [after 
      1000] or so.
      
      Can you test this ?
      
      
    2. login: "andreas_kupries"
    3. mimetype: "text/plain"
    4. username: "andreas_kupries"
  3. Ticket change [727bcff70c] (rid 100867) by kennykb on 2002-07-09 04:44:45:

    1. closedate changed to: "2002-07-08T21:44:45"
    2. closer changed to: "kennykb"
    3. icomment:
      Logged In: YES 
      user_id=99768
      
      Sorry about the false alarm.  There was a brief DNS outage while I was running the test suite, and that apparently 
      caused the problem.
      
      We might want to have the tests use 127.0.0.1 in place of [info hostname] when making connections that are 
      known to be on the local host.
      
      
    4. login: "kennykb"
    5. mimetype: "text/plain"
    6. resolution changed to: "Invalid"
    7. status changed to: "Closed"
    8. username: "kennykb"
  4. Ticket change [3690199f61] (rid 107124) by hobbs on 2002-07-09 04:54:12:

    1. closedate changed to: "2002-07-08T21:54:12"
    2. closer changed to: "hobbs"
    3. icomment:
      Logged In: YES 
      user_id=72656
      
      It is important to note that [info hostname] will of course 
      follow different code paths, so it may not be appropriate to 
      replace it for all tests.  Also, at the OS leve, the loopback 
      address often follows a different codepath than referring to 
      machine by name or global IP.  This may not be important to 
      all tests, but there are likely a few where info hostname 
      should still be used.
      
      
    4. login: "hobbs"
    5. mimetype: "text/plain"
    6. username: "hobbs"
  5. Ticket change [f6f7125e8e] (rid 130404) by andreas_kupries on 2002-07-09 04:58:19:

    1. closedate changed to: "2002-07-08T21:58:19"
    2. closer changed to: "andreas_kupries"
    3. icomment:
      Logged In: YES 
      user_id=75003
      
      From the comments below and talking with Jeff I have 
      decided to make the change for the test mentioned in this 
      report, i.e. socket-2.4, but nowhere else.
      
      
      
    4. login: "andreas_kupries"
    5. mimetype: "text/plain"
    6. username: "andreas_kupries"