Subject: | Timeout while receiving messages |
You module has major issue. When I just ->ReceiveMessage, in scalar context I will be forced in timeout for next messages.
Because ->ReceiveMessage by default fetch all messages the SQS will hold all of them until delete.
If they are not deleted they will be accessable after some timeout.
So ->ReceiveMessage in scalar context will allow to process one message and hold remaining
TODO: setup appropriate options to fetch only one message from SQS when sub is called in scalar context