feat: retry api requests when closed immediately due to overload
This commit is contained in:
1 parent
62fc734f82
commit
6008a1b2d9
3 files changed
+113
-2
No files matched your search
@@ -0,0 +1,15 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace App\BusProNet\Exception;
|
||||
|
||||
/**
|
||||
* Thrown when the BPN server closes the connection immediately without sending data.
|
||||
*
|
||||
* This typically indicates the server is busy processing other requests.
|
||||
* Unlike a true timeout, this is a transient condition that may succeed on retry.
|
||||
*/
|
||||
class ImmediateConnectionCloseException extends ApiClientException
|
||||
{
|
||||
}
|
||||
Reference in new issue
Block a user