3 Answers
- Newest
- Most votes
- Most comments
0
Hello,
Looks like you're calling connect inside the method, so that means that you're calling connect 1023 times and thus creating 1023 threads and socket connections.
You should only ever connect one time and then reuse the client for all future calls. This should resolve your issue as well as be more efficient and fast.
Cheers,
Michael
0
Well...if you put it like that.... yes.. this is less than optimal :)
thank you Michael! It all works well now.
Tom
answered 5 years ago
0
Tom,
I'm very glad to hear that solution worked for you.
Have a great day.
Cheers,
Michael
Relevant content
asked 2 years ago
- AWS OFFICIALUpdated 4 years ago
