git-svn-id: https://beef.googlecode.com/svn/trunk@908 b87d56ec-f9c0-11de-8c8a-61c5e9addfc9
15 lines
522 B
Ruby
15 lines
522 B
Ruby
# The following file contains patches for WEBrick.
|
|
module WEBrick
|
|
|
|
class HTTPServer < ::WEBrick::GenericServer
|
|
|
|
# I'm patching WEBrick so it does not log http requests anymore.
|
|
# The reason being that it seems to considerably slow down BeEF which receives
|
|
# numerous requests simultaneously. Additionally, it was also found to crash
|
|
# the thread when not being able to write to the log file (which happened when
|
|
# overloaded).
|
|
def access_log(config, req, res); return; end
|
|
|
|
end
|
|
|
|
end |