ocsigen / ocsigenserver

Web server in OCaml.
http://ocsigen.org/ocsigenserver/
Other
100 stars 30 forks source link

Unexpected timeout exception #143

Open bruce-ricard opened 6 years ago

bruce-ricard commented 6 years ago

I was playing with my Eliom server in the train today (with a bad phone based internet), and as I was querying it, I got those logs on the server side:

ocsigenserver: ocsigen:main: While talking to [some ip]:timeout ocsigenserver: main: Unexpected exception in Server.wait_connection (handle connection): (Invalid_argument Lwt.wakeup_result)
ocsigenserver: main: backtrace: ocsigenserver: main: Raised at file "pervasives.ml", line 31, characters 25-45
ocsigenserver: main: Called from file "ocsigen_http_com.ml", line 158, characters 2-33 ocsigenserver: main: Called from file "ocsigen_server.ml", line 835, characters 4-35
ocsigenserver: main: Called from file "src/core/lwt.ml", line 715, characters 66-71

It doesn't seem that there's anything wrong other than that, but the error message suggests that an exception should probably be caught somewhere. It must be quite challenging to reproduce it, you might have to shut down your client side connection at the right moment.

Using ocsigenserver version 2.7.

vouillon commented 6 years ago

We known about this issue. It is completely harmless, so we have not yet taken the time to investigate.

vouillon commented 6 years ago

And thanks for the bug report!