thomasp85 / fiery

A flexible and lightweight web server
https://fiery.data-imaginist.com
Other
240 stars 12 forks source link

where to start debugging for crashing sessions? #15

Closed dpastoor closed 6 years ago

dpastoor commented 6 years ago

Playing around with the routr/fiery doc examples, and I'm successfully crashing as soon as I hit the hello/anything/ endpoint

image

it did work once, but then I pinged from localhost:8080 once and it crashed, and now on subsequent times it is crashing every time from http://127.0.0.1:8080/hello/mars/

I thought it might have been a port conflict so changed that but still no good.

dpastoor commented 6 years ago

this is all over the place - I changed the port, set to block = TRUE and now its working, I am more using this ticket as a discussion point if others also run into this problem - I wonder if it could also be something to do with rstudio interception magic - I know they do some serious voodoo in places.

dpastoor commented 6 years ago

Ok I think I've narrowed it somewhat to an issue with the nonblocking mode. when I keep block = TRUE it seems to behave, but when switching back to nonblocking the first time I curl/hit from webpage it crashes.

thomasp85 commented 6 years ago

Then my best guess is that it has something to do with later. Are you using the CRAN version of that package?

dpastoor commented 6 years ago

yep my thoughts as well - I was on the CRAN version. I am checking on the tip from github right now to see if that fixes it, though having trouble compiling it - yay for windows.

dpastoor commented 6 years ago

Ok, on the development version of (0.4) of later the behavior persists.

thomasp85 commented 6 years ago

Can you replicate this on another computer?

dpastoor commented 6 years ago

I will give it a try on both another windows computer and my MBP and see what happens.

thomasp85 commented 6 years ago

Any update?

thomasp85 commented 6 years ago

I'll close - If there is any development feel free to reopen