Skip to content

Commit bb1b3a5

Browse files
author
Marek Majkowski
committed
bug22974 (channel flow polarity) merged into default.
2 parents a619143 + 8ff80ef commit bb1b3a5

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

projects/client/RabbitMQ.Client/src/client/api/IModel.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -636,7 +636,7 @@ void HandleBasicReturn(ushort replyCode,
636636
///<summary>Used to send a Channel.FlowOk. Confirms that
637637
///Channel.Flow from the broker was processed.</summary>
638638
[AmqpMethodMapping(null, "channel", "flow-ok")]
639-
void _Private_ChannelFlowOk();
639+
void _Private_ChannelFlowOk(bool active);
640640

641641
///<summary>Handle incoming Channel.Flow methods. Either
642642
///stops or resumes sending the methods that have content.</summary>

projects/client/RabbitMQ.Client/src/client/impl/ModelBase.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -146,8 +146,8 @@ public event CallbackExceptionEventHandler CallbackException
146146
m_callbackException -= value;
147147
}
148148
}
149-
}
150-
149+
}
150+
151151
public IBasicConsumer DefaultConsumer { get; set; }
152152

153153
public ISession m_session;
@@ -402,15 +402,15 @@ public void HandleBasicReturn(ushort replyCode,
402402
OnBasicReturn(e);
403403
}
404404

405-
public abstract void _Private_ChannelFlowOk();
405+
public abstract void _Private_ChannelFlowOk(bool active);
406406

407407
public void HandleChannelFlow(bool active)
408408
{
409409
if (active)
410410
m_flowControlBlock.Set();
411411
else
412412
m_flowControlBlock.Reset();
413-
_Private_ChannelFlowOk();
413+
_Private_ChannelFlowOk(active);
414414
}
415415

416416
public void HandleConnectionStart(byte versionMajor,

0 commit comments

Comments
 (0)