File tree 3 files changed +18
-4
lines changed
3 files changed +18
-4
lines changed Original file line number Diff line number Diff line change 2
2
3
3
## [ NOT RELEASED]
4
4
5
+ ## 0.2.2
6
+
7
+ ### Fixed
8
+
9
+ - Make sure to restart process if there is an uncaught exception
10
+
5
11
## 0.2.1
6
12
7
13
### Added
12
18
13
19
### Added
14
20
15
- - ` vendor/bin/bref-local-handler.php ` to invoke PSR-11 handlers locally.
21
+ - ` vendor/bin/bref-local-handler.php ` to invoke PSR-11 handlers locally
16
22
- Invocation and request context to the Request ServerBag
17
23
18
24
### Fixed
19
25
20
- - Session handling for Symfony 5.4 and up.
26
+ - Session handling for Symfony 5.4 and up
21
27
- Error handling on invalid ` _HANDLER ` string
22
28
23
29
## 0.1.1
Original file line number Diff line number Diff line change 11
11
],
12
12
"require" : {
13
13
"ext-json" : " *" ,
14
- "bref/bref" : " ^1.2 " ,
14
+ "bref/bref" : " ^1.3 " ,
15
15
"clue/arguments" : " ^2.1" ,
16
16
"psr/http-server-handler" : " ^1.0" ,
17
17
"riverline/multipart-parser" : " ^2.0" ,
Original file line number Diff line number Diff line change @@ -31,7 +31,15 @@ public function run(): int
31
31
if (++$ loops > $ this ->loopMax ) {
32
32
return 0 ;
33
33
}
34
- $ lambda ->processNextEvent ($ this ->handler );
34
+
35
+ /**
36
+ * In case the execution failed, we force starting a new process regardless
37
+ * of $this->loopMax. This is because an uncaught exception could have
38
+ * left the application in a non-clean state.
39
+ */
40
+ if (!$ lambda ->processNextEvent ($ this ->handler )) {
41
+ return 0 ;
42
+ }
35
43
}
36
44
}
37
45
}
You can’t perform that action at this time.
0 commit comments