-
Notifications
You must be signed in to change notification settings - Fork 437
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
[FsBroker] This message breaks the queue #387
Comments
Any reason why you send such a message? why does it start with '(' |{'. Looks like an internal format of fs transport. |
Hello, I test the FsBroker and I want to see if the message are isolated in the file or if I need to avoid some messages beginning. |
I don't suggest you use fs transport in production, it is blocking, provides very basic features, does not scale and might slow down when the queue file grows. |
I think fs transport should throw an exception if it finds a special char sequence. wdyt? |
You should write this advice on the doc of the transport (that is build only for dev purpose, not for production), no ? |
I am going to add an exception, as for escaping it is not that easy to do. DBAL is meant to be used in prod. |
Thank you for your advice ! |
escaping has been implemented. |
Thank you ! |
When I consume the message I have this error
PHP Fatal error: Uncaught LogicException: The frame could start from either " " or "|". The malformed frame starts with """. in XXXX/enqueue/vendor/enqueue/fs/FsConsumer.php:125 Stack trace: #0 [internal function]: Enqueue\Fs\FsConsumer->Enqueue\Fs\{closure}(Object(Enqueue\Fs\FsDestination), Resource id #29) #1 XXXX/enqueue/vendor/enqueue/fs/FsContext.php(121): call_user_func(Object(Closure), Object(Enqueue\Fs\FsDestination), Resource id #29) #2 XXXX/enqueue/vendor/enqueue/fs/FsConsumer.php(155): Enqueue\Fs\FsContext->workWithFile(Object(Enqueue\Fs\FsDestination), 'c+', Object(Closure)) #3 XXXX/enqueue/vendor/enqueue/fs/FsConsumer.php(91): Enqueue\Fs\FsConsumer->receiveNoWait() #4 XXXX/enqueue/consumer.php(16): Enqueue\Fs\FsConsumer->receive() #5 {main} thrown in XXXX/enqueue/vendor/enqueue/fs/FsConsumer.php on line 125
The text was updated successfully, but these errors were encountered: