Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: c149625776480d6288cd9d4a7890455a9d2fbb9b
Ticket: 581937ab1e2a1c69d61b23bd90179bd35f212d8d
async socket connect fail does not fire readable event
User & Date: oehhar on 2014-03-24 12:26:30
Changes

  1. assignee changed to: "nobody"
  2. closer changed to: "nobody"
  3. cmimetype changed to: "text/x-fossil-wiki"
  4. comment changed to:
    <H1>Issue</H1>
    On windows, a readable fileevent on a failed async socket connect only fires, if there is also a writable fileevent.
    
    <H1>Examples</H1>
    Following examples are in wish so there is an event loop running.
    
    <h2>Only readable fileevent does not fire</h2>
    
    <verbatim>
    % set h [socket -async localhost 30001]
    sock448
    % fileevent $h readable {puts R:[fconfigure $h -error];close $h}
    </verbatim>
    
    <h2>Readable and writable fileevent fire both</h2>
    
    
    Fileevent fires, if there is also a writable file event ( as in bug [794839]):
    <verbatim>
    % fileevent $h readable {puts R:[fconfigure $h -error];close $h}
    % fileevent $h writable {puts W}
    W
    R:connection refused</verbatim>
    </verbatim>
    
    <h1>TCL8.6.1</H1>
    
    The same issue is also present in tcl8.6.1, but already fixed in branch bug-13d3af3ad5, checkin [f1d2f6dbad].
    
  5. foundin changed to: "8.5.15"
  6. is_private changed to: "0"
  7. login: "oehhar"
  8. priority changed to: "5 Medium"
  9. private_contact changed to: "0f366eb3e9e2fcab52b8ebacd197db9047186a5f"
  10. resolution changed to: "None"
  11. severity changed to: "Severe"
  12. status changed to: "Open"
  13. submitter changed to: "oehhar"
  14. subsystem changed to: "27. Channel Types"
  15. title changed to:
    async socket connect fail does not fire readable event
    
  16. type changed to: "Bug"