I've seen this on and off for a while but now other bugs are being fixed its popping to the top of the list and I still don't have a clue what's going wrong - if someone can tell me the problem in the libcurl output below I'd be rather grateful!
I communicate with AWS' SQS service via Http. The connection is this rolling 30s request - if there is a message remotely it returns right away, if not it hangs out for the 30 seconds and then returns nothing and I repost the request.
For fun there is a C# server running in ec2 that is processing the messages, this uses standard aws C# libraries and isn't the problem as far as I can tell.
The problem is that sometimes connection just stops working. As far as I can tell the client loses it's ability to receive messages and continues to behave like that until I stop the program in the editor and relaunch. This seems limited to PC but that is the platform I develop on mostly - so this could just be statistical likelihood.
Very likely a bug in my queue management code but I do tend to see SSL errors around the time of the problem (so perhaps a bug in my http request setup?). Here's an example:
In this particular case my code got no errors (i.e. http requests return with error codes, or corrupt data) and seemed to just keep working.
Of course now I'm focussing on this its not happening - which might indicate some timing issue triggered by breakpoints being hit, or the client cycling.
And yeah - I've tried to simulate those issues and failed so far.
Too many words already, just trying to get the state of play down.
Seems like the problem was the Queue setup at the AWS side - needed to have the receive time set to allow the connection to persist.
answered Feb 17 '17 at 01:38 AM
Okay - its possible I've fixed these connection issues, but I've thought that before so will give them a couple of days to return.
AWS SQS queues have a Receive Time settings, which I had set to 0. Now I've upped this to 20 seconds (I'm using what they call long polling) and the errors seem to have gone away - expect when I interrupt the connection.
As I say I've thought I've fixed these problems before so fingers crossed I can close this out in couple of days!
answered Feb 09 '17 at 05:51 AM
Follow this question
Once you sign in you will be able to subscribe for any updates here