Photon keeps reconnects to wifi when running a webserver

I was running the Photon connected to a good wifi network and the Photon webserver works fine until it get’s hit with more traffic. It then reconnects to wifi. How can I stop this? I am using CloudFlare. It only happens when my Photon gets hit with a lot of traffic.

Here’s a link to my web server http://www.thesiteofgeek.tk:8080