Replies: 2 comments 5 replies
-
Hi @janusz-j , I think this is a bug, yes. It has been around for quite a long time and I think most people work around it one way or the other. I don't know how much insight you have into the code but would it be possible for you to test a bug fix or create a PR for this? Cheers, |
Beta Was this translation helpful? Give feedback.
-
Hi, I know this has been around for a while but we just came across #360 when looking into changes in functionality on logoff. We sometimes explicitly call logoff on a session in order to bounce it but this changes means that the session can no longer be bounced as it is disabled. I was wondering if you were able to provide some context into why logoff and disabling a session were conflated? On first look, it feels like they are separate concepts but I am not experienced in this codebase so likely to be mistaken here. Secondly, how would you recommend logging off a session but allowing the initiator to logon again? The only thing I could think of is having a thread doing something like the following:
Thanks, |
Beta Was this translation helpful? Give feedback.
-
Hello.
I'm playing around with quickfix and I'm trying to manage it via JMX using JConsole.
I observed inconsistency around the behaviour of the session logon/logoff operations depending if the session is an acceptor or an initiator.
When initiator session is connected and we issue a logoff() operation via JConsole the session logs off and stays disconnected, i.e. the initiator doesn't attempt to connect, until logon() is called again.
When we call logoff() for acceptor session, it issues Logout and disconnects the session, but immediately after that, it is ready to accept a connection from counterparty again.
When I looked at the code I found the enabled attribute of the Session, and the documentation for it says:
/*
* Controls whether it is possible to log on to this Session (if Acceptor)
* or if Logon is sent out respectively (if Initiator).
*/
private volatile boolean enabled;
That doesn't seem to be correct as far as I was able to test it.
Setting enabled to false, doesn't make it impossible to log into the acceptor session.
Could this be considered a bug?
If not, is there any way, to interactively set the acceptor session in "blocked" state, i.e. to disable accepting connections?
Regards,
Janusz.
Beta Was this translation helpful? Give feedback.
All reactions