Comments (6)
I tried to debug both old and new solutions, here are my results:
Old .NET QuickFix wrapper:
- OnCreate event is called after calling the constructor of initiator,
- calling start method
- toAdmin event fires and initiates the connection - with the new API this event is never called so I guess there is some kind of socket error but no exceptions are called.
from quickfixn.
I think I found the error in method SocketInitiator.OnStart:
Environment.TickCount is returning negative number on my system so the Connect method is never called.
I think this should be considered as bug since TickCount can return negative number:
"The value of this property is derived from the system timer and is stored as a 32-bit signed integer. Consequently, if the system runs continuously, TickCount will increment from zero to Int32.MaxValue for approximately 24.9 days, then jump to Int32.MinValue, which is a negative number, then increment back to zero during the next 24.9 days."
Source: http://msdn.microsoft.com/en-us/library/system.environment.tickcount.aspx
from quickfixn.
Simple solution should fix this issue (my connection work after this change):
protected override void OnStart()
{
shutdownRequested_ = false;
while(!shutdownRequested_)
{
int reconnectIntervalAsTicks = 1000 * reconnectInterval_;
int nowTickCount = Environment.TickCount;
if (nowTickCount < 0)
nowTickCount *= -1;
if ((nowTickCount - lastConnectTickCount) >= reconnectIntervalAsTicks)
{
Connect();
lastConnectTickCount = nowTickCount;
}
Thread.Sleep(1 * 1000);
}
}
from quickfixn.
Dupe of #42.
By the way, the proper avenue for help is the mailing list.
http://quickfixn.org/help
Issues are for bug and new-feature tracking.
from quickfixn.
Thanks for answer. Next time I will use the mailing list. But to be accurate, it was a bug after all ;-) but it taked me more time to realize it...
from quickfixn.
No problem :)
from quickfixn.
Related Issues (20)
- Nuget for Version 1.11 HOT 1
- HttpServer Issue with SessionID HOT 2
- DataDictionary files are missing from nuget HOT 3
- Unhelpful behaviour for unknown fields HOT 1
- deployment script redesign
- Yes, we know the mailing list is down HOT 1
- Release 1.11.0 announcement
- DDField.cs SEQNUM type is still int after 24x7 ulong implementation HOT 1
- not able to capture the return message after login and seq mismatch HOT 2
- "Acceptor heartbeat set to" log message is wrong
- In Logout session, the field=553(Username) is redundant HOT 2
- Udp protocol support HOT 1
- FIX50 IOIQty does not allow Numeric Quantity HOT 2
- Not send Missing Application messages to the receiving application as response for Resend Request HOT 2
- Unhandled Exception in SocketInitiator.OnStart() can Terminate Process HOT 8
- Enhanced CME Globex Resend Logic HOT 3
- Wrong time format for TimeStampPrecision=NANO HOT 4
- Weekdays setting implementation HOT 1
- setting "TimeStampPrecision" is not documented
- performance tests HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from quickfixn.