简体   繁体   English

FIX 5.0(或 SP2)登录超时非常偶然

[英]FIX 5.0 (or SP2) timeout on logins very occasional

[Sometimes] I get very weird login issues. [有时] 我遇到非常奇怪的登录问题。 And it's only sometimes I keep getting disconnect and login and its a loop.而且只是有时我不断断开连接并登录,这是一个循环。 Probably it could be due to server load while it is doing many things.可能是由于服务器负载,而它正在做很多事情。 I dont have a dedicated server for the DB or FIX and all services is put onto 1 machine.我没有用于 DB 或 FIX 的专用服务器,所有服务都放在一台机器上。 But when FIX doesnt work, it always due to login issue, and i suspect there is a timeout for it, such that if it cannot login to a FIX server for certain time (less than fractions of a second) i get the dreaded LOGOUT and attempt to login again by FIX and the loop goes forever until i actually reboot the computer or stop all services and application and run my FIX client first.但是当 FIX 不起作用时,它总是由于登录问题,我怀疑它有超时,这样如果它在一定时间内(不到几分之一秒)无法登录到 FIX 服务器,我会得到可怕的 LOGOUT 和尝试通过 FIX 再次登录,循环一直持续,直到我真正重新启动计算机或停止所有服务和应用程序并首先运行我的 FIX 客户端。 Here is the log....这是日志....

2022-07-08 18:00:55.055 +08:00 [INF] OMS QuickFix Service Started
2022-07-08 18:00:55.079 +08:00 [INF] Server Started - Accepting connections [0.0.0.0:7000]
2022-07-08 18:00:55.082 +08:00 [INF] OMS Fix Router Service Started: Version [1.08]
2022-07-08 18:00:55.083 +08:00 [INF] FIX Connection Succeeded.
2022-07-08 18:00:55.139 +08:00 [INF] Logout - FIXT.1.1:CLIENT1->EXECUTOR
2022-07-08 18:00:57.071 +08:00 [INF] FIX Connection Succeeded.
2022-07-08 18:00:57.076 +08:00 [INF] Logout - FIXT.1.1:CLIENT1->EXECUTOR
2022-07-08 18:00:59.080 +08:00 [INF] FIX Connection Succeeded.
2022-07-08 18:00:59.085 +08:00 [INF] Logout - FIXT.1.1:CLIENT1->EXECUTOR
2022-07-08 18:01:01.091 +08:00 [INF] FIX Connection Succeeded.
2022-07-08 18:01:01.096 +08:00 [INF] Logout - FIXT.1.1:CLIENT1->EXECUTOR
2022-07-08 18:01:03.103 +08:00 [INF] FIX Connection Succeeded.
2022-07-08 18:01:03.107 +08:00 [INF] Logout - FIXT.1.1:CLIENT1->EXECUTOR
2022-07-08 18:01:05.126 +08:00 [INF] FIX Connection Succeeded.
2022-07-08 18:01:05.130 +08:00 [INF] Logout - FIXT.1.1:CLIENT1->EXECUTOR
2022-07-08 18:01:07.135 +08:00 [INF] FIX Connection Succeeded.
2022-07-08 18:01:07.139 +08:00 [INF] Logout - FIXT.1.1:CLIENT1->EXECUTOR
2022-07-08 18:01:08.138 +08:00 [INF] OMS QuickFix Service Stopped

Once i see this log, i stop and and restart the application with many services shut down and it will work.一旦我看到这个日志,我就会停止并重新启动应用程序,其中许多服务都关闭了,它就会工作。 Why is that, or is there a way for me the increase the connection timeout so it doesnt time out on me, is there an option or configuration in the FIX config (cfg) file that i can use to change this behavior?为什么会这样,或者我有办法增加连接超时,这样我就不会超时,FIX 配置 (cfg) 文件中是否有一个选项或配置可用于更改此行为? I am using FIX library QuickFixN, a C# .NET FIX library.我正在使用 FIX 库 QuickFixN,一个 C# .NET FIX 库。

I really need to get this resolved, it just happens randomly and i dont know what the real problem is, what i stated above was theoretical.我真的需要解决这个问题,它只是随机发生的,我不知道真正的问题是什么,我上面所说的是理论上的。

OK, sorry, i think i figured it out.好的,对不起,我想我想通了。 I have a WebApi service running at port 5000 (default) and once this service runs, it SOMEHOW (which i have no idea why and how) it also opens port 5001.我有一个 WebApi 服务在端口 5000(默认)上运行,一旦该服务运行,它会以某种方式(我不知道为什么以及如何)它也会打开端口 5001。

QuickFix by default runs on port 5001 and so that is why if my WebApi service ran first, my FIX application will NOT run. QuickFix 默认在端口 5001 上运行,这就是为什么如果我的 WebApi 服务首先运行,我的 FIX 应用程序将不会运行。 But if i run my FIX app first and then the WebApi, then everything works.但是,如果我先运行我的 FIX 应用程序然后运行 ​​WebApi,那么一切正常。

I just dont know why and how the WebApi will open 5001 as well for no reason when it's only suppose to run on port 5000 only.我只是不知道 WebApi 为何以及如何无缘无故地打开 5001,因为它只假设只在端口 5000 上运行。 Strange.奇怪的。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM