ipkn / crow

Crow is very fast and easy to use C++ micro web framework (inspired by Python Flask)
BSD 3-Clause "New" or "Revised" License
7.48k stars 891 forks source link

[Error] Worker crash occurs during load test #209

Open afiorillo opened 7 years ago

afiorillo commented 7 years ago

Hi!

I'm hitting a "Worker Crash" error saying " [ERROR ] Worker Crash: An uncaught exception occurred: remote_endpoint: The file handle supplied is not valid" specifically after successfully responding to hundreds of requests. This only appears to occur when the server is under reasonable load (15+ simultaneous clients requesting rapid fire) where each request does a substantial amount of work (~200 ms). I can try and reproduce it in a more controlled setting later today.

I'm using a Windows 7 x64 environment with VS2015 and Boost 1.62.0.

jamiebullock commented 7 years ago

@andrewmfiorillo did you ever resolve this? I'm seeing a similar thing, in my case "Worker Crash: An uncaught exception occurred: remote_endpoint: Bad file descriptor"

afiorillo commented 7 years ago

I entirely lost track of that issue and haven't touched the project in months. I don't think I found a solution, but I can dig through things this weekend and see if I made it any further to isolate the problem.

ipkn commented 7 years ago

I will try to reproduce this.

abhisharmab commented 7 years ago

I could reproduce this as well. Thanks for the fix in the latest patch. I fixed in my local version.