{{Quickfixn}} Initiator getting disconnected

Grant Birchmeier gbirchmeier at connamara.com
Fri Oct 24 11:07:13 PDT 2014


Are you doing a lot of work in your OnMessage(SecurityDefinition) callback?

I know from experience that ICE sends a MASSIVE amount of data when you
request SecurityDefinitions.  If our OnMessage takes too long, that will
cause the TCP backup that you're seeing.

In my app, my OnMessage(SecDef) handler does little more than push the
SecDef into a work queue.  Another worker thread watches the work queue and
does the processing work.  (My app is QF/j, actually, but the design will
work for C# too.)

On Fri, Oct 24, 2014 at 12:50 PM, Rettenmier, Curt <
Curt.Rettenmier at avistacorp.com> wrote:

>  We finally received a response from ICE diagnosing the reason we are
> getting disconnected. Their response is:
>
> Recent ICE Comment:  I see the issue. Your ID logs in and begins receiving
> security definitions from us. About a minute and a half into receiving
> these you begin broadcasting to us a TCP Zero Window. Meaning, your server
> or app is not able to accept any more data because there is no room in the
> TCP buffer. This points to either an App issue or a server resource issue.
>
> In searching the Internet on this issue I found a quickfix/j page that has
> additional configuration parameters related to sockets and buffers such as
> SocketReceiveBufferSize, SocketLinger and SocketTcpNoDelay. The page is:
>
>
> http://www.quickfixj.org/quickfixj/usermanual/1.5.0/usage/configuration.html
>
> Is anyone familiar with these settings and what values I could use to
> resolve my issues?
>
> Thanks,
>
>
>
> CURT RETTENMIER
>
> Information Developer
>
> Avista Utilities
>
> HP Enterprise Services
>
> Telephone +1 509.495.8492
>
> Email curt.rettenmier at avistacorp.com
>
> MSC - 28
>
> 1411 E. Mission, Spokane, WA 99202
>
>
>
> [image: Description: cid:image001.png at 01CD29CD.B57A0640]
>
>
>
> *This message and any attached files or documents may contain information
> that is confidential and considered proprietary to Avista Corporation.*
> Any unauthorized use, transfer, or disclosure of the information contained
> herein is strictly forbidden. If you believe that this message has been
> sent to you in error, please reply to the sender that you have received the
> message in error and delete the message.
>
>
>
> *From:* Quickfixn [mailto:quickfixn-bounces at lists.quickfixn.com] *On
> Behalf Of *Grant Birchmeier
> *Sent:* Thursday, October 23, 2014 1:45 PM
> *To:* Mailing list for QuickFIX/n
> *Subject:* Re: {{Quickfixn}} Initiator getting disconnected
>
>
>
>  20141023-11:04:15.257 : Session FIX.4.4:552/ADMIN->ICE disconnecting:
> System.Net.Sockets.SocketException (0x80004005): An existing connection
> was forcibly closed by the remote host
>
>
>
>  There is not enough here to tell us what's going on.  All we know is
> that the other party is closing the connection.
>
>
>
> ​Have you contacted ICE support and asked them why they're disconnecting
> you?​
>
>
>
> On Thu, Oct 23, 2014 at 12:41 PM, Rettenmier, Curt <
> Curt.Rettenmier at avistacorp.com> wrote:
>
> Our Initiator application continues to get disconnected every two minutes
> or so with the error below and we are not sure what is causing it. It then
> will automatically reconnect. Below are the contents of our
> event.currentlog. Is this a timeout issue within QuickFix? Is there some
> configuration setting we are missing?
>
>
>
> 20141023-11:03:05.365 : Session FIX.4.4:552/ADMIN->ICE already
> disconnected: Resetting...
>
> 20141023-11:03:05.396 : Session reset: New session
>
> 20141023-11:03:05.396 : Created session
>
> 20141023-11:03:06.505 : Connecting to 172.18.133.178 on port 1024
>
> 20141023-11:03:06.990 : Connection succeeded
>
> 20141023-11:03:12.833 : Session reset: ResetOnLogon
>
> 20141023-11:03:14.240 : Session reset: ResetSeqNumFlag
>
> 20141023-11:03:14.302 : Initiated logon request
>
> 20141023-11:03:18.068 : Received logon
>
> 20141023-11:04:15.257 : Session FIX.4.4:552/ADMIN->ICE disconnecting:
> System.Net.Sockets.SocketException (0x80004005): An existing connection was
> forcibly closed by the remote host
>
>    at QuickFix.SocketInitiatorThread.ReadSome(Byte[] buffer, Int32
> timeoutMilliseconds)
>
>    at QuickFix.SocketInitiatorThread.Read()
>
> 20141023-11:04:17.272 : Connecting to 172.18.133.178 on port 1024
>
> 20141023-11:04:17.272 : Connection succeeded
>
> 20141023-11:04:17.272 : Session reset: ResetOnLogon
>
> 20141023-11:04:17.382 : Session reset: ResetSeqNumFlag
>
> 20141023-11:04:17.382 : Initiated logon request
>
> 20141023-11:04:17.460 : Received logon
>
> 20141023-11:06:55.573 : Session FIX.4.4:552/ADMIN->ICE disconnecting:
> System.Net.Sockets.SocketException (0x80004005): An existing connection was
> forcibly closed by the remote host
>
>    at QuickFix.SocketInitiatorThread.ReadSome(Byte[] buffer, Int32
> timeoutMilliseconds)
>
>    at QuickFix.SocketInitiatorThread.Read()
>
> 20141023-11:06:55.807 : Connecting to 172.18.133.178 on port 1024
>
> 20141023-11:06:55.807 : Connection succeeded
>
> 20141023-11:06:55.807 : Session reset: ResetOnLogon
>
> 20141023-11:06:55.807 : Session reset: ResetSeqNumFlag
>
> 20141023-11:06:55.807 : Initiated logon request
>
> 20141023-11:06:55.979 : Received logon
>
> 20141023-11:08:32.606 : Session FIX.4.4:552/ADMIN->ICE disconnecting:
> System.Net.Sockets.SocketException (0x80004005): An existing connection was
> forcibly closed by the remote host
>
>    at QuickFix.SocketInitiatorThread.ReadSome(Byte[] buffer, Int32
> timeoutMilliseconds)
>
>    at QuickFix.SocketInitiatorThread.Read()
>
> 20141023-11:08:33.278 : Connecting to 172.18.133.178 on port 1024
>
> 20141023-11:08:33.278 : Connection succeeded
>
> 20141023-11:08:33.278 : Session reset: ResetOnLogon
>
> 20141023-11:08:33.278 : Session reset: ResetSeqNumFlag
>
> 20141023-11:08:33.278 : Initiated logon request
>
> 20141023-11:08:33.450 : Received logout request
>
> 20141023-11:08:33.450 : Sending logout response
>
> 20141023-11:08:33.450 : Session FIX.4.4:552/ADMIN->ICE disconnecting:
> Received logout request
>
> 20141023-11:08:35.309 : Connecting to 172.18.133.178 on port 1024
>
> 20141023-11:08:35.309 : Connection succeeded
>
> 20141023-11:08:35.309 : Session reset: ResetOnLogon
>
> 20141023-11:08:35.309 : Session reset: ResetSeqNumFlag
>
> 20141023-11:08:35.309 : Initiated logon request
>
> 20141023-11:08:35.637 : Received logon
>
> 20141023-14:32:48.642 : Session FIX.4.4:552/ADMIN->ICE disconnecting:
> System.Net.Sockets.SocketException (0x80004005): An established connection
> was aborted by the software in your host machine
>
>    at QuickFix.SocketInitiatorThread.ReadSome(Byte[] buffer, Int32
> timeoutMilliseconds)
>
>    at QuickFix.SocketInitiatorThread.Read()
>
> 20141023-14:32:50.282 : Connecting to 172.18.133.178 on port 1024
>
> 20141023-14:32:50.532 : Connection succeeded
>
> 20141023-14:32:50.689 : Session reset: ResetOnLogon
>
> 20141023-14:32:50.704 : Session reset: ResetSeqNumFlag
>
> 20141023-14:32:50.704 : Initiated logon request
>
> 20141023-14:32:50.814 : Received logout request
>
> 20141023-14:32:50.814 : Sending logout response
>
> 20141023-14:32:50.814 : Session FIX.4.4:552/ADMIN->ICE disconnecting:
> Received logout request
>
> 20141023-14:32:52.533 : Connecting to 172.18.133.178 on port 1024
>
> 20141023-14:32:52.533 : Connection succeeded
>
> 20141023-14:32:52.533 : Session reset: ResetOnLogon
>
> 20141023-14:32:52.533 : Session reset: ResetSeqNumFlag
>
> 20141023-14:32:52.533 : Initiated logon request
>
>
>
> CURT RETTENMIER
>
> Information Developer
>
> Avista Utilities
>
> HP Enterprise Services
>
> Telephone +1 509.495.8492
>
> Email curt.rettenmier at avistacorp.com
>
> MSC - 28
>
> 1411 E. Mission, Spokane, WA 99202
>
>
>
> [image: Description: cid:image001.png at 01CD29CD.B57A0640]
>
>
>
> *This message and any attached files or documents may contain information
> that is confidential and considered proprietary to Avista Corporation.*
> Any unauthorized use, transfer, or disclosure of the information contained
> herein is strictly forbidden. If you believe that this message has been
> sent to you in error, please reply to the sender that you have received the
> message in error and delete the message.
>
>
>
>
> _______________________________________________
> Quickfixn mailing list
> Quickfixn at lists.quickfixn.com
> http://lists.quickfixn.com/listinfo.cgi/quickfixn-quickfixn.com
>
>
>
>
>
> --
>
> Grant Birchmeier
>
> *Connamara Systems, LLC*
>
> *Made-To-Measure Trading Solutions.*
>
> Exactly what you need. No more. No less.
>
> http://connamara.com
>
> _______________________________________________
> Quickfixn mailing list
> Quickfixn at lists.quickfixn.com
> http://lists.quickfixn.com/listinfo.cgi/quickfixn-quickfixn.com
>
>


-- 
Grant Birchmeier
*Connamara Systems, LLC*
*Made-To-Measure Trading Solutions.*
Exactly what you need. No more. No less.
http://connamara.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.quickfixn.com/pipermail/quickfixn-quickfixn.com/attachments/20141024/04886538/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.png
Type: image/png
Size: 749 bytes
Desc: not available
URL: <http://lists.quickfixn.com/pipermail/quickfixn-quickfixn.com/attachments/20141024/04886538/attachment-0001.png>


More information about the Quickfixn mailing list