|
@@ -4450,11 +4450,13 @@ RGV2aWNlIEEQSQAGADcqAAEg
|
|
res = socks[i].recv(100)
|
|
res = socks[i].recv(100)
|
|
if "HTTP/1" in res:
|
|
if "HTTP/1" in res:
|
|
count += 1
|
|
count += 1
|
|
|
|
+ else:
|
|
|
|
+ logger.info("recv[%d]: len=%d" % (i, len(res)))
|
|
except:
|
|
except:
|
|
pass
|
|
pass
|
|
socks[i].close()
|
|
socks[i].close()
|
|
logger.info("%d concurrent HTTP GET operations returned response" % count)
|
|
logger.info("%d concurrent HTTP GET operations returned response" % count)
|
|
- if count < 10:
|
|
|
|
|
|
+ if count < 8:
|
|
raise Exception("Too few concurrent HTTP connections accepted")
|
|
raise Exception("Too few concurrent HTTP connections accepted")
|
|
|
|
|
|
logger.info("OOM in HTTP server")
|
|
logger.info("OOM in HTTP server")
|