feat: retry api requests when closed immediately due to overload

This commit is contained in:
Björn Fromme
2026-03-16 12:01:09 +01:00
parent b3cace3b43
commit 249e326de4
3 changed files with 113 additions and 2 deletions
@@ -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
{
}