ACDB  Log In
Search
Random
Light/Dark Theme
Site Map
SMASH or PASS
Stats Server DoS Issues Jul 18, 2011 | Rei
As expected, my code wasn't perfect. We had a few DoS attacks ( defined as more than 20 page requests in 2 seconds from 1 individual ) which caused an unexplained termination of the stats server.

First time it happened, it took the whole site down with it. I recoded a few things so that if the stats server died, the site continues to run without it.

Simplified several parts of code, traced the program execution, and recreated the scenario. At first I didn't realize why it was exiting at a dprintf() point.

Uploaded patch ss-0.3 which ran until the next DoS attack. Crashed again, but this time the site stayed up.

Looked over the code again... and noticed dprintf() was being called twice, but was requested only once. Added a return value to the function that might call dprintf to report if it did so I don't call it the second time.

Hopefully this is the last time I have to deal with it....

Still worried about the simplified while loops tho. They have a possibility of going infinite. I'll know by tomorrow if the code is solid.

Go Top

Anime Characters Database Logo Links

Contribute

This site uses cookies for analytics, personalized content and ads. By continuing to browse this site, you agree to this use. Learn more [close]

Who Board | New Thread

02:26 pm
Anonymous
Who is this?

Latest Comments


Shader

SSSSSSSSMMMMMMMMMMMMMAAAAAAAAAAAAAAAAAAAAAAAAAAAAASSSSSSSSHHHHHHHHHHHHH - Anonymous

Quotes

This mountain path is pretty rough!
Someone must've gotten hurt!
- Tanjirou Kamado

Are you all right? - Tanjirou Kamado

What the hell? - Tanjirou Kamado

Anime Art Academy Free Taster Course

Increase your fun by becoming a member today! Login | Register

10 fun things to do on ACDB

Advertise - Share - Mascot - Contact - Discord - API - Wiki - Site Map - Change Log - Twitter - Instagram - Coffee! - Privacy Policy - Rules
All images are copyright of their respective owners. Copyright © Goral Software

Rendered in 3.8 ms. R-12-W-2-M-3198.58 KB