SamuraiWTF / samuraiwtf

The main SamuraiWTF collaborative distro repo.
https://owasp.org/www-project-samuraiwtf/#SamuraiWTF_Project
GNU Lesser General Public License v3.0
462 stars 119 forks source link

Dojo-Basic extremely slow #29

Closed secureideas closed 5 years ago

secureideas commented 6 years ago

During exercises Dojo-Basic appears to be extremely slow with out a network connection. (Maybe on that last part.)

JGillam commented 6 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).

secureideas commented 6 years ago

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 .

JGillam commented 6 years ago

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.

secureideas commented 5 years ago

Fixed in Dojo-Basic. We removed a dns lookup in the footer.