Closed Nakiami closed 8 years ago
Can you try version 0.9.2-SNAPSHOT, https://s3-eu-west-1.amazonaws.com/softwaremill-public/elasticmq-server-0.9.2-SNAPSHOT.jar ?
Thanks for reporting, if the SQS spec says otherwise it's definitely not intended behavior :)
0.9.2-SNAPSHOT works as expected, thanks!
Great, 0.9.2 released :)
Hi,
it does not seem possible to send a WaitTimeSeconds of 0 when receiving a message from a queue.
In the SQS documentation it states that
But in ElasticMQ, when in strict mode, we seem to be enforcing values between and including 1 and 20. Example: https://github.com/adamw/elasticmq/blob/161eae5f6b828bfb4445d41e25d5cc34430a6614/rest/rest-sqs/src/main/scala/org/elasticmq/rest/sqs/SQSRestServerBuilder.scala#L370
Is this intended behavior?
Some libraries, like spring-cloud-aws defaults to 0 WaitTimeSeconds on receive, and cannot be easily changed for some methods. The workaround for using spring-cloud-sqs seems to be to disable strict mode in ElasticMQ.