<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto"><div>Maybe applicable, does you counterparty require ssl? I always get the forcibly closed error when stunnel (an ssl tunneling application) is not configured correctly. Perhaps the fix app you're testing connectivity with uses ssl, where as qf/n doesn't... Yet (really psyched about this grant). Just a thought.<br><br>Sent from my iPhone</div><div><br>On Nov 25, 2013, at 17:40, Erika Hernandez <<a href="mailto:erika.hernandez@db.com">erika.hernandez@db.com</a>> wrote:<br><br></div><blockquote type="cite"><div><font size="2" face="sans-serif">Classification: For internal use only<br>
<br>
Hi , </font>
<br>
<br>
<br><font size="2" face="sans-serif">1) I debugged the code, when
I try to send the order , I see that the <b><i>Send methods</i></b> are
executed twice. Why? </font>
<br>
<br><font size="2" face="sans-serif">When this line is executed for second
time :</font>
<br>
<br>
<br><font size="1" face="}"> </font><font size="1" color="blue" face="}">int</font><font size="1" face="}">
bytesSent = socket_.Send(rawData);</font>
<br>
<br>
<br><font size="2" face="sans-serif">I get the last event on the log:</font>
<br>
<br><font size="2" face="sans-serif">20131125-22:29:40.220 : Created session</font>
<br><font size="2" face="sans-serif">20131125-22:29:40.274 : Connecting to
172.17.111.23 on port 9002</font>
<br><font size="2" face="sans-serif">20131125-22:29:40.286 : Connection succeeded</font>
<br><font size="2" face="sans-serif"><b>20131125-22:30:14.975 : Connection
failed: An existing connection was forcibly closed by the remote host</b></font>
<br>
<br><font size="2" face="sans-serif">And the order is not sent. </font>
<br>
<br>
<br><font size="2" face="sans-serif">2 , 3 ) Yes , I already tried
: </font>
<br>
<br><font size="1" face="}">ResetOnLogon=Y</font>
<br><font size="1" face="}">MsgSeqNum=1</font>
<br>
<br>
<br><font size="2" face="sans-serif">But it did't work , and , that's
right, I cannot restart the sequence number from the other side every time
i need to run my code since there will be used on automated test cases
, I think I need to know the next sequence number before sending
the message. </font>
<br>
<br><font size="2" face="sans-serif">So I think the right settings will be:
</font>
<br>
<br><font size="1" face="}">ResetOnLogon=N</font>
<br>
<br>
<br><font size="2" face="sans-serif">How can I get the last seq number used?
</font>
<br>
<br><font size="2" face="sans-serif">Where the sequence number is being
set ? </font>
<br>
<br><font size="2" face="sans-serif">Why a zero is sent here? : </font>
<br>
<br><font size="1" face="}"> </font><font size="1" color="blue" face="}">public</font><font size="1" face="}">
</font><font size="1" color="blue" face="}">virtual</font><font size="1" face="}">
</font><font size="1" color="blue" face="}">bool</font><font size="1" face="}">
Send(</font><font size="1" color="#4181c0" face="}">Message</font><font size="1" face="}">
message)</font>
<br><font size="1" face="}"> {</font>
<br><font size="1" face="}"> message.Header.RemoveField(Fields.</font><font size="1" color="#4181c0" face="}">Tags</font><font size="1" face="}">.PossDupFlag);</font>
<br><font size="1" face="}"> message.Header.RemoveField(Fields.</font><font size="1" color="#4181c0" face="}">Tags</font><font size="1" face="}">.OrigSendingTime);</font>
<br><font size="1" face="}"> </font><font size="1" color="blue" face="}">return</font><font size="1" face="}">
SendRaw(message, 0); </font>
<br><font size="1" face="}"> }</font>
<br>
<br><font size="2" face="sans-serif">I guess the sequence number is taken
from here, so should I add that to the message's header? </font>
<br>
<br><font size="1" face="}"> </font><font size="1" color="blue" face="}">protected</font><font size="1" face="}">
</font><font size="1" color="blue" face="}">void</font><font size="1" face="}">
Persist(</font><font size="1" color="#4181c0" face="}">Message</font><font size="1" face="}">
message, </font><font size="1" color="blue" face="}">string</font><font size="1" face="}">
messageString)</font>
<br><font size="1" face="}"> {</font>
<br><font size="1" face="}"> </font><font size="1" color="blue" face="}">if</font><font size="1" face="}">
(</font><font size="1" color="blue" face="}">this</font><font size="1" face="}">.PersistMessages)</font>
<br><font size="1" face="}"> {</font>
<br><font size="1" face="}">
</font><font size="1" color="blue" face="}">int</font><font size="1" face="}">
msgSeqNum = message.Header.GetInt(Fields.</font><font size="1" color="#4181c0" face="}">Tags</font><font size="1" face="}">.MsgSeqNum);</font>
<br><font size="1" face="}">
state_.Set(msgSeqNum, messageString);</font>
<br><font size="1" face="}"> }</font>
<br><font size="1" face="}"> state_.IncrNextSenderMsgSeqNum();</font>
<br><font size="1" face="}"> }</font>
<br>
<br>
<br>
<br><font size="2" face="sans-serif">Thanks & regards! <br>
</font>
<br><font size="2" face="sans-serif"><br>
<br>
<br>
********************************************************************************************************<br>
This email is sent to you by Infosys Limited on behalf of Deutsche Bank.<br>
Diese email wurde Ihnen von Infosys Limited im Auftrag der Deutschen Bank
gesendet<br>
*********************************************************************************************************
</font>
<br>
<br>
<br>
<table width="100%">
<tbody><tr valign="top">
<td><font size="1" color="#5f5f5f" face="sans-serif">From:</font>
</td><td><font size="1" face="sans-serif">Grant Birchmeier <<a href="mailto:gbirchmeier@connamara.com">gbirchmeier@connamara.com</a>></font>
</td></tr><tr valign="top">
<td><font size="1" color="#5f5f5f" face="sans-serif">To:</font>
</td><td><font size="1" face="sans-serif">"Mailing list for QuickFIX/n"
<<a href="mailto:quickfixn@lists.quickfixn.com">quickfixn@lists.quickfixn.com</a>>, </font>
</td></tr><tr valign="top">
<td><font size="1" color="#5f5f5f" face="sans-serif">Date:</font>
</td><td><font size="1" face="sans-serif">11/25/2013 05:13 PM</font>
</td></tr><tr valign="top">
<td><font size="1" color="#5f5f5f" face="sans-serif">Subject:</font>
</td><td><font size="1" face="sans-serif">Re: {{Quickfixn}} Log In troubles [I]</font></td></tr></tbody></table>
<br>
<hr noshade="">
<br>
<br>
<br><font size="2">1) </font><font size="3">The message </font><font size="2">"</font><font size="3">An
Existing connection was forcibly closed by the remote host</font><font size="2">
" means that the other side is terminating the connection. You
may not know why.</font>
<br>
<br><font size="3">2) </font><font size="2">"</font><font size="3">MsgSeqNum</font><font size="2">=1"
-- Ashutosh, I don't know what this means. That's not a setting.
If you put it in your config, QF will ignore it.</font><font size="3">
</font>
<br>
<br><font size="2">3) Asking the other side to reset their sequence numbers
is not a great idea. They'll probably refuse.</font><font size="3">
</font>
<br>
<br><font size="2">Your ResetOnXXX settings must match up with their interface.
If they don't reset on logon, you shouldn't either. You can
manually edit your .seqnums file between app executions to match their
expectation, or you can let the transport layer fix itself with resend
requests or whatnot. (I forget the exact msg flow at the moment;
in some scenarios the two sides will work it out, in others they won't.)</font>
<br>
<br>
<br><tt><font size="2">_______________________________________________<br>
Quickfixn mailing list<br>
<a href="mailto:Quickfixn@lists.quickfixn.com">Quickfixn@lists.quickfixn.com</a><br>
</font></tt><a href="http://lists.quickfixn.com/listinfo.cgi/quickfixn-quickfixn.com"><tt><font size="2">http://lists.quickfixn.com/listinfo.cgi/quickfixn-quickfixn.com</font></tt></a><tt><font size="2"><br>
</font></tt>
<br>
<br>
<br><font size="1" face="Arial">---</font><br>
<font size="2" face="Courier New">This communication may contain confidential and/or privileged information.<br>
If you are not the intended recipient (or have received this communication<br>
in error) please notify the sender immediately and destroy this<br>
communication. Any unauthorized copying, disclosure or distribution of the<br>
material in this communication is strictly forbidden.<br>
<br>
Deutsche Bank does not render legal or tax advice, and the information<br>
contained in this communication should not be regarded as such.</font></div></blockquote><blockquote type="cite"><div><span>_______________________________________________</span><br><span>Quickfixn mailing list</span><br><span><a href="mailto:Quickfixn@lists.quickfixn.com">Quickfixn@lists.quickfixn.com</a></span><br><span><a href="http://lists.quickfixn.com/listinfo.cgi/quickfixn-quickfixn.com">http://lists.quickfixn.com/listinfo.cgi/quickfixn-quickfixn.com</a></span><br></div></blockquote></body></html>