Adding an ability to send a bare string as a message for testing/troubleshooting purposes.#678
Open
pps314159 wants to merge 3 commits into
Open
Adding an ability to send a bare string as a message for testing/troubleshooting purposes.#678pps314159 wants to merge 3 commits into
pps314159 wants to merge 3 commits into
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Support/investigation activity may require necessity to replay logged/sniffed FIX messages that are transferred on wire as mere strings. An option to build a FIXMessage from such a string may not be good enough because FIXMessage constructor may rearrange the fields that ruins the idea of replaying especially for specific FIX dialects. Applying a custom fields ordering is not good enough either because it requires efforts to prepare such a custom order definition and yet it is not easy to control whether the applied order corresponds the original message order.
The best option to ease the replaying could be an ability to send a raw, completely unprocessed string as a message. One sending such a string could update some specific message fields on the string level upon necessity. The proposed change offers an ability to send a bare unattended string.
Personally, I use such functionality from Python API replaying real logged FIX messages against tested clients. Some fields like target or sending time are updated on the Python level along with recalculating of body length and checksum. This can be done easy on the string level and the rest parts of the message can be replayed "as is".