QuickFIX Python Session File Corruption Issue

56 Views Asked by At

I am encountering a recurring problem in my production environment using QuickFIX Python. The issue revolves around the corruption of session files (FIX.4.4-A-B.session) in the Sessions folder. The session file is expected to contain a valid date-time format (e.g., 20240108-11:42:01), but at random times, additional and seemingly random characters are appended(20231228-22:00:02§♥♥ 0qÄ@☼sS_½•LÕ☼s£↓› GLrµ©5¹vj↕Æ#¿ÈíÜ), leading to date-time conversion errors.

enter image description here

This is a critical problem as it causes disruptions in the normal functioning of the system, and unfortunately, the error is being thrown from the underlying C++ codebase, making it challenging to catch and handle programmatically.

enter image description here

  1. Are there known reasons or common scenarios that lead to such corruption in session files?
  2. How can I better handle or prevent such corruption in the session files within my Python code?
  3. Is there a recommended way to catch and handle errors originating from the C++ core of QuickFIX within the Python environment?

Versions:

  • Fix version - FIX44
  • I am using quickfix-ssl 1.15.1.post4
  • OS: Linux - ubuntu - 18.04

Any insights or suggestions would be greatly appreciated. Thank you!

0

There are 0 best solutions below