Closed secureideas closed 5 years ago
I was able to confirm the behavior as follows. With working internet connection dojo-basic loading normally at first.
Then I shut off my internet connection and refreshed the page. There was approximately a 10 second delay. I confirmed this with multiple attempts, and used the browser developer tools to measure the load time. I then reestablished my internet connection and hit refresh and it loaded quickly (sub-second) right away.
I don't see any indication in nginx or php logs of errors. The problem is on the index.php page specifically (I reproduced by just calling wget on that page).
This sounds like exaclt the problem I had with 642. Apache and/or php was doing dns lookups on each client. Let me think about how I fixed it.
Kevin
*** Check out our recorded courses at https://www.secureideas.com/classes/recordedcourses.php. Only $25 each.
Kevin Johnson CEO Secure Ideas -- Professionally Evil® https://www.secureideas.com office - (866) 404-7837 ext 700 / cell - 904-403-8024
On Sun, Sep 30, 2018 at 10:24 PM Jason notifications@github.com wrote:
I was able to confirm the behavior as follows. With working internet connection dojo-basic loading normally at first.
Then I shut off my internet connection and refreshed the page. There was approximately a 10 second delay. I confirmed this with multiple attempts, and used the browser developer tools to measure the load time. I then reestablished my internet connection and hit refresh and it loaded quickly (sub-second) right away.
I don't see any indication in nginx or php logs of errors. The problem is on the index.php page specifically (I reproduced by just calling wget on that page).
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/SamuraiWTF/samuraiwtf/issues/29#issuecomment-425773787, or mute the thread https://github.com/notifications/unsubscribe-auth/AAhQVj9VhTegHEAyGIWUfa08VtXkMRhsks5ugXzJgaJpZM4UGLyN .
Played around with it some more. I find that it is still slow when I hit the docker port directly. This takes the nginx reverse proxy out of the equation.
Fixed in Dojo-Basic. We removed a dns lookup in the footer.
During exercises Dojo-Basic appears to be extremely slow with out a network connection. (Maybe on that last part.)