We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents be26b09 + e705e0b commit ff2bffbCopy full SHA for ff2bffb
src/Adoy/FastCGI/Client.php
@@ -10,6 +10,7 @@
10
namespace Adoy\FastCGI;
11
12
class TimedOutException extends \Exception {}
13
+class ForbiddenException extends \Exception {}
14
15
/**
16
* Handles communication with a FastCGI application
@@ -547,6 +548,12 @@ public function wait_for_response($requestId, $timeoutMs = 0) {
547
548
throw new TimedOutException('Read timed out');
549
}
550
551
+ if ($info['unread_bytes'] == 0
552
+ && $info['blocked']
553
+ && $info['eof']) {
554
+ throw new ForbiddenException('Not in white list. Check listen.allowed_clients.');
555
+ }
556
+
557
throw new \Exception('Read failed');
558
559
0 commit comments