ok for the request but for connection? Castillo sai different things

Il giorno venerdì 4 luglio 2014 16:47:00 UTC+2, Fedor Indutny ha scritto:
>
> No, uv_write_t is a request, you should not call `uv_close()` on it.
>
>
> On Fri, Jul 4, 2014 at 6:44 PM, Claudio Bisegni <[email protected] 
> <javascript:>> wrote:
>
>> for clear the uv_write_t (that has the tcp socket handle into it i need 
>> to call 
>>
>> on_write_end(uv_write_t *req, int status) {
>>
>> ...
>>
>> uv_close((uv_handle_t*)req, TCPUVServer::on_close);
>>
>> uv_close((uv_handle_t*)handle->handle, TCPUVServer::on_close);
>> ...
>> }
>>
>> void TCPUVServer::on_close(uv_handle_t* handle) {
>>
>> TCPUVServerLDBG << "on_close ";
>>
>> free(handle);
>>
>> }
>>
>> ?
>> Il giorno venerdì 4 luglio 2014 16:37:49 UTC+2, Iñaki Baz Castillo ha 
>> scritto:
>>>
>>> 2014-07-04 16:34 GMT+02:00 Claudio Bisegni <[email protected]>: 
>>> > i can call free on on_connect(uv_connect_t *connection, int status) 
>>> for the 
>>> > connection parameter and call onlcose only for the real socket.. 
>>> > right? 
>>>
>>> Mmmm, really not. Call uv_close(uv_handle) and free it on the on_close 
>>> callback. 
>>>
>>>
>>> -- 
>>> Iñaki Baz Castillo 
>>> <[email protected]> 
>>>
>>  -- 
>> You received this message because you are subscribed to the Google Groups 
>> "libuv" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to [email protected] <javascript:>.
>> To post to this group, send email to [email protected] <javascript:>
>> .
>> Visit this group at http://groups.google.com/group/libuv.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"libuv" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/libuv.
For more options, visit https://groups.google.com/d/optout.

Reply via email to