Skip to content
Browse files

[fix] Runtime: Catch exn when unserializing so we can close da connexion

  • Loading branch information...
1 parent 626cab3 commit dafc47b93aa3e06030f46696aa0ca57cb78c7c22 Hugo Heuzard committed
Showing with 4 additions and 1 deletion.
  1. +4 −1 opabsl/mlbsl/bslSession.ml
View
5 opabsl/mlbsl/bslSession.ml
@@ -787,7 +787,10 @@ end = struct
| _ -> raise Malformed
)
| _ -> raise Malformed
- ) with Malformed -> None |> k
+ ) with
+ (* We catch all exceptions so we can answer the client and close the
+ current connection *)
+ | e -> Logger.error "unserialize error: (%s)" (Printexc.to_string e); (None |> k)
let registers cookie page request =

0 comments on commit dafc47b

Please sign in to comment.
Something went wrong with that request. Please try again.