{{Quickfixn}} Sending Email Message Problem
Grant Birchmeier
gbirchmeier at connamara.com
Mon Jul 14 09:36:17 PDT 2025
Somnath,
Your report had me worried that we had a problem with Acceptor Stop/Start,
but I'm just not able to reproduce your issue.
Methodology: I've hacked the "Executor" example app to let me invoke
Stop/Start on the acceptor, and changed it to use a FileLogFactory and
FileStoreFactory. I've changed its config to set every "ResetOn<X>"
setting to =N. For an initiator, I used the "TradeClient" example, also
configured with every "ResetOn<X>=N".
I started up the Executor and called Start/Stop repeatedly with no
problems. Then I restarted it and connected the TradeClient to it, and
again called Start/Stop repeatedly. The TradeClient was able to reconnect
after every time I called acceptor.Start(). I saw no exceptions on either
side. The logs and store files contained nothing that I didn't expect to
see.
The Executor and TradeClient example sources are at:
https://github.com/connamara/quickfixn/tree/master/Examples. I've attached
my modified Executor Program.cs so you can see how I called Stop/Start.
At this point I can only conclude that you are doing something unexpected
in your code. I think you should have a look at the Executor, and then
compare that to the functions you are calling when you setup your own
acceptor. Anything you're doing that doesn't parallel a call in my example
should be suspect.
-Grant
On Sat, Jul 12, 2025 at 12:20 AM somnath pal <palsomnath at hotmail.com> wrote:
> One more point I should mention. I am developing this software for a firm.
> Due to whatever reasons they might have, I don't know why, they told me not
> to use NeGet package, but use the source code of the package. So I am using
> the QuickFixn source code in a class library and not using NeGet package.
>
> Thanks,
> Somnath
> ------------------------------
> *From:* somnath pal <palsomnath at hotmail.com>
> *Sent:* 12 July 2025 10:30
> *To:* Mailing list for QuickFIX/n <quickfixn at lists.quickfixn.com>
> *Subject:* Re: {{Quickfixn}} Sending Email Message Problem
>
> I was not sure, why the email problem was happening. After investigation I
> am getting more and more information and sharing with you as I found.
> Answer of your questions:
>
> 1. Yes 1.13.1 (.Net 8) is used. I am migrating to .Net Core
>
> 2. Start button click:
> Creates the acceptor socket and starts
> DualEngineAcceptor = new ThreadedSocketAcceptor(application, storeFactory,
> settings, logFactory, messageFactory);
> DualEngineAcceptor.Start();
>
> 1.
>
> Stop button click: DualEngineAcceptor.Stop();
>
> 3. ConnectionType=acceptor, so it's acceptor. No need for counter party.
> Error happanes with or without connection to counter party initiator. So,
> counter party is not important here.
>
> To reproduce the problem, with or without connection to counter party
> initiator,
>
> A) Start button 1st click - all good
> B) Stop button 1st click - all good
> C) Start button 2nd click - error
> D) Start button 3rd click - all good
>
> So looks like, when the error happened at step C, all are reset and Step D
> worked. Probably, that reset hapenning at Step C, should have been also at
> Step B when Stopped.
>
> Thanks,
> Somnath
>
>
> ------------------------------
> *From:* Quickfixn <quickfixn-bounces at lists.quickfixn.com> on behalf of
> Grant Birchmeier <gbirchmeier at connamara.com>
> *Sent:* Saturday, July 12, 2025 04:59
> *To:* Mailing list for QuickFIX/n <quickfixn at lists.quickfixn.com>
> *Subject:* Re: {{Quickfixn}} Sending Email Message Problem
>
> Ok, now you're telling me new things that would have been useful to know
> earlier. You never said anyting about that File Store exception-- that's
> important! Your questions and answers are kind of disorganized, it's a
> little hard to follow.
>
> 1. Are you sure you're using the latest release v1.13.1? (".net8" is not
> a QF/n version.)
>
> 2. I don't need to know what your UI looks like. Are your buttons
> calling acceptor.Start and acceptor.Stop?
>
> 3. Is that config for your Initiator or for your Acceptor? What is the
> config on the other side?
>
> 4. The store error on stop/restart should not be happening. I will try
> and find time to spin up a sample app and see if I can replicate it.
>
> By the way, if you want to stick with your old C#-over-C++ wrapper until
> we figure this out, you could use Stunnel to wrap SSL around that
> connection.
>
> -Grant
>
> 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
> http://lists.quickfixn.com/listinfo.cgi/quickfixn-quickfixn.com
>
--
<https://www.connamara.com>
Grant Birchmeier
Director of Engineering, Connamara
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/20250714/51dddbf0/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: modified-executor-Program.cs
Type: application/octet-stream
Size: 1912 bytes
Desc: not available
URL: <http://lists.quickfixn.com/pipermail/quickfixn-quickfixn.com/attachments/20250714/51dddbf0/attachment.obj>
More information about the Quickfixn
mailing list