Skip to content

Commit 58792e3

Browse files
authored
Add timeout
1 parent 71cb414 commit 58792e3

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/SqsQueueReaderServiceProvider.php

+4
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,10 @@ private function removeMessages(array $data, $queue): void
6363
'region' => Config::get('queue.connections.sqs-json.region'),
6464
'version' => '2012-11-05',
6565
'credentials' => Arr::only(Config::get('queue.connections.sqs-json'), ['key', 'secret']),
66+
'http' => [
67+
'timeout' => 30,
68+
'connect_timeout' => 30,
69+
],
6670
]);
6771

6872
foreach ($batchIds as $batch) {

0 commit comments

Comments
 (0)