Now there are another questions about current asyncdispatch implementation :)

  1. Isn't it a leak here: 
[https://github.com/nim-lang/Nim/blob/devel/lib/pure/asyncdispatch.nim#L835](https://github.com/nim-lang/Nim/blob/devel/lib/pure/asyncdispatch.nim#L835)?
 GC_unref will be called only if WSASend call is not pending
  2. Is there a problem with the line 
[https://github.com/nim-lang/Nim/blob/devel/lib/pure/asyncdispatch.nim#L830](https://github.com/nim-lang/Nim/blob/devel/lib/pure/asyncdispatch.nim#L830)?
 `data` can be freed by GC. WSASend documentation says:



> For a Winsock application, once the WSASend function is called, the system 
> owns these buffers and the application may not access them. This array must 
> remain valid for the duration of the send operation.

Reply via email to