-
Notifications
You must be signed in to change notification settings - Fork 553
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can´t connect to initiator (QuickFix .NET wrapper -> QuickFixN) #53
Comments
I tried to debug both old and new solutions, here are my results:
|
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. "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." |
Simple solution should fix this issue (my connection work after this change):
|
Dupe of #42. By the way, the proper avenue for help is the mailing list. Issues are for bug and new-feature tracking. |
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... |
No problem :) |
I was using .NET wrapper for quickfix and everything worked fine. Recently I was looking for a native alternative and I found this project. So I took my old project and basicly rewrite it. But now it seems that my initiator can´t even get a working connection since the OnLogon event is never called. My configuration file is still the same:
[DEFAULT]
ConnectionType=initiator
LogonTimeout=1
LogoutTimeout=1
ValidateFieldsOutOfOrder=Y
ValidateUserDefinedFields=Y
ValidateFieldsHaveValues=Y
AllowUnknownMsgFields=Y
SocketTcpNoDelay=Y
FileStorePath=Store
FileLogPath=Log
CheckLatency=N
CheckCompID=Y
SendRedundantResendRequests=Y
ContinueInitializationOnError=Y
ResetOnLogon=Y
ResetOnLogout=Y
ResetOnDisconnect=Y
ForceResync=Y
HeartBtInt=30
StartTime=03:00:00
EndTime=22:00:00
UseLocalTime=Y
ReconnectInterval=20
UseDataDictionary=Y
DataDictionary=FXService.FXCM.xml
BeginString=FIX.4.4
[SESSION]
username=xxx
password=xxx
pin=xxx
SenderCompID=xxx
TargetCompID=xxx
TargetSubID=xxx
SocketConnectHost=fixdemo.fxcorporate.com
SocketConnectPort=8043
I don't know if this is a proper channel for this kind of problem but I appreciate any help.
The text was updated successfully, but these errors were encountered: