{{Quickfixn}} Sending Email Message Problem

somnath pal palsomnath at hotmail.com
Thu Jul 10 03:23:21 PDT 2025


Here Start means = Creation of socket from scratch.

1st Start - Socket Created.
Stop - Socket Stopped
2nd Start - Re-creating the Socket

Since at 2nd Start Socket is re-created, we must dispose the socket after stop. That is for sure and if I do that all good.

Only question is whether or not terminate and remove the sessions to avoid any resource/memory leak.

Thanks,
Somnath


________________________________
From: somnath pal <palsomnath at hotmail.com>
Sent: Thursday, July 10, 2025 10:15
To: Mailing list for QuickFIX/n <quickfixn at lists.quickfixn.com>
Subject: Re: {{Quickfixn}} Sending Email Message Problem

Already sent you the config file. I am using latest version (.net8) Here are the steps:

Winform (C#) application with 2 buttons.
Start Button Click - Starting the acceptor
Stop Button Click  - Stooping the acceptor

Clicked on Start Button - no issues
Clicked on Stop Button - no issues
Now Click on Start Buton again  - Error - "The process cannot access the file store\FIX.4.2-FIX_DRE-FWA.header' because it is being used by another process."

If I dispose the acceptor thread, after stop - error doesn't come.

I have created a FIX Engine 20 years back (that time only C# wrapper over C++) and never encountered this. The product is working great in production since then. Now I have to add SSL and after migrating to .Net8 core package this is happening.

Thanks,
Somnath
________________________________
From: Quickfixn <quickfixn-bounces at lists.quickfixn.com> on behalf of Grant Birchmeier <gbirchmeier at connamara.com>
Sent: 10 July 2025 00:23
To: Mailing list for QuickFIX/n <quickfixn at lists.quickfixn.com>
Subject: Re: {{Quickfixn}} Sending Email Message Problem

I believe Stop() and Start() should just work.  (Are you using the most recent release?)

I think you are being mislead by GetSessionIDs().  These are maintained internally by QF, and how the Initiator and Acceptor maintains them are probably different.  I have worked with QF/n for 10+ years and I don't think I've ever thought to examine GetSessionIDs() closely in the way that you are doing.  It's not just not relevant.

So my advice is:

* Stop looking at GetSessionIDs(), and do NOT call RemoveSession()!  Forget this approach altogether.
* Look at your message and event logs!  Use a FileLogFactory.  Tell me specifically what you see in those logs.
* Next time you reply, show me your config files (minus any sensitive information).

-Grant



On Wed, Jul 9, 2025 at 12:41 PM somnath pal <palsomnath at hotmail.com<mailto:palsomnath at hotmail.com>> wrote:
I did the followings. Are these correct way to do this or there is a better way?

            DualEngineAcceptor.Stop(true);

            //Check if all sessions are terminated and removed
            var sessionList = DualEngineAcceptor.GetSessionIDs();

            if (sessionList.Count > 0)
            {
                //Sessions are still attached
                foreach (var sessionId in sessionList)
                {
                    //Terminate and remove
                    if (sessionId != null) DualEngineAcceptor.RemoveSession(sessionId, true);
                }
            }

            //Dispose
            DualEngineAcceptor.Dispose();
            DualEngineAcceptor = null;

Thanks,
Somnath
________________________________
From: Quickfixn <quickfixn-bounces at lists.quickfixn.com<mailto:quickfixn-bounces at lists.quickfixn.com>> on behalf of Grant Birchmeier <gbirchmeier at connamara.com<mailto:gbirchmeier at connamara.com>>
Sent: 09 July 2025 20:58
To: Mailing list for QuickFIX/n <quickfixn at lists.quickfixn.com<mailto:quickfixn at lists.quickfixn.com>>
Subject: Re: {{Quickfixn}} Sending Email Message Problem

When you say "it removes the session," do you actually mean it resets the sessions?

If yes, it sounds like it may be related to your "ResetOn<X>" configurations.

This email, along with any attachments, is confidential. If you believe you received this message in error, please contact the sender immediately and delete all copies of the message. Thank you from Connamara Systems, LLC.
_______________________________________________
Quickfixn mailing list
Quickfixn at lists.quickfixn.com<mailto:Quickfixn at lists.quickfixn.com>
http://lists.quickfixn.com/listinfo.cgi/quickfixn-quickfixn.com


--
[https://lh4.googleusercontent.com/1ZKItKWIoLUepUXvEXgEeZWBlntjas7UxLPLuLLnsApbxAcRepKELA_SwZBe1BWEZ3huC6sJdz2ZzvUYLNgu56Zcm8bo2R_iLzXZVjDmMo67675iop6mEMOg_Y6q8Mtz7ylOW9t8RazXt-tyJtEyhE0]<https://www.connamara.com>


Grant Birchmeier

Director of Engineering, Connamara

gbirchmeier at connamara.com<mailto:gbirchmeier at connamara.com>

This email, along with any attachments, is confidential. If you believe you received this message in error, please contact the sender immediately and delete all copies of the message. Thank you from Connamara Systems, LLC.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.quickfixn.com/pipermail/quickfixn-quickfixn.com/attachments/20250710/f473ca0c/attachment-0001.htm>


More information about the Quickfixn mailing list