[network] #2: Socket related IO cannot be be interrupted on Windows

network libraries at haskell.org
Mon Jan 26 10:23:57 EST 2009


#2: Socket related IO cannot be be interrupted on Windows
----------------------+-----------------------------------------------------
  Reporter:  igloo    |       Owner:  simonmar
      Type:  defect   |      Status:  assigned
  Priority:  major    |   Milestone:          
 Component:  network  |     Version:          
Resolution:           |    Keywords:          
----------------------+-----------------------------------------------------
Changes (by simonmar):

  * owner:  => simonmar
  * status:  new => assigned

Comment:

 This is because `accept` makes a safe FFI call on Windows, whereas on Unix
 it uses `threadWaitRead` to wait for a connection (`threadWaitRead` is
 interruptible, but not available on Windows).

 It looks to me like it ought to be interruptible without `-threaded`, I
 don't completely understand what's going on there.

 Ideally we would have an IO manager thread on Windows and handle this in
 the same way as other blocking IO operations, but that's a big job.

-- 
Ticket URL: <http://trac.haskell.org/network/ticket/2#comment:1>
network <http://projects.haskell.org/network/>
Networking-related facilities


More information about the Libraries mailing list