← Back to team overview

mysql-proxy-discuss team mailing list archive

Fwd: funnel - a multiplexer plugin for mysql-proxy

 

missed the list


---------- Forwarded message ----------
From: nick loeve <trickie@xxxxxxxxx>
Date: Thu, Mar 5, 2009 at 3:30 PM
Subject: Re: [Mysql-proxy-discuss] funnel - a multiplexer plugin for
mysql-proxy
To: Jan Kneschke <jan@xxxxxxxxxxx>


Hi,

On Thu, Mar 5, 2009 at 3:18 PM, Jan Kneschke <jan@xxxxxxxxxxx> wrote:
> nick loeve wrote:
>>> Yep, the _op structure is prepared for a async delete too. It isn't
>>> implemented yet.
>>
>> I implemented it and it seemed to have fixed my issue. Finally! :)
>>
>> I pushed the updates to my branch.
>>
>> Expect some event-thread-based benchmarks as soon as we have some
>> plugin-internal statistics implemented.
>
> Depending on how it is implemented, we may have to take care of a race
> on the del-event:
>
>   chassis_event_del(...); /* async, only queues the request to delete
> the event */
>   close(fd);
>
> The fd may be reused before its event is deleted. This is only really
> affecting network_socket_free()/network_socket_close(), but I wanted to
> raise it at least.

Yeah i thought about that. From what I can see, as long as we push the
delete using _local I should avoid that circumstance, at least in my
code path.

I should also add a patch to the event deletion in network_socket_free
that pushes the operation through the _local call.

Cheers


--
Nick Loeve



-- 
Nick Loeve



Follow ups

References