Skip to content

Commit

Permalink
Add warning message when we fall back to timed-reads
Browse files Browse the repository at this point in the history
  • Loading branch information
albinowax committed Mar 6, 2019
1 parent 290fcef commit aef8c02
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions resources/examples/test.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# This is just for making sure the engine works during development
# Launch with java -jar build/libs/turbo-intruder-all.jar resources/examples/test.py /dev/null z z
def queueRequests(target, wordlists):
engine = RequestEngine(endpoint='https://hackxor.net:443',
concurrentConnections=1,
Expand Down
1 change: 1 addition & 0 deletions src/ThreadedRequestEngine.kt
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,7 @@ open class ThreadedRequestEngine(url: String, val threads: Int, maxQueueSize: In
}
}
else {
Utils.err("Response has no content-length - doing a one-second socket read instead. This is slow!")
socket.soTimeout = 1000
try {
while (true) {
Expand Down

0 comments on commit aef8c02

Please sign in to comment.