-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Description
Channel in BaseChannelPoolHandler throwing errors when ChannelReleased or ChannelAcquired called,
cause in this code you trying to cast from IAttribute<IdleStateTimer> to IdleStateTimer type.
public virtual void ChannelReleased(IChannel channel)
{
IdleStateTimer idls = (IdleStateTimer)channel.GetAttribute(IDLE_KEY);
idls.setIdle();
}
public virtual void ChannelAcquired(IChannel channel)
{
IdleStateTimer idls = (IdleStateTimer)channel.GetAttribute(IDLE_KEY);
idls.setActive();
}
Should be changed to
public virtual void ChannelReleased(IChannel channel)
{
IdleStateTimer idls = channel.GetAttribute(IDLE_KEY).Get();
idls.setIdle();
}
public virtual void ChannelAcquired(IChannel channel)
{
IdleStateTimer idls = channel.GetAttribute(IDLE_KEY).Get();
idls.setActive();
}
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels