Skip to content

Commit cb969c7

Browse files
author
Philip Guo
committed
precautions moved into pg_logger.py
1 parent 30710ae commit cb969c7

1 file changed

Lines changed: 0 additions & 10 deletions

File tree

‎v3/web_exec.py‎

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -18,16 +18,6 @@
1818
import sys
1919

2020

21-
# set ~200MB virtual memory limit AND a 5-second CPU time limit
22-
# (tuned for Webfaction shared hosting) to protect against memory bombs such as:
23-
#
24-
# x = 2
25-
# while True: x = x*x
26-
import resource
27-
resource.setrlimit(resource.RLIMIT_AS, (200000000, 200000000))
28-
resource.setrlimit(resource.RLIMIT_CPU, (5, 5))
29-
30-
3121
# set to true if you want to log queries in DB_FILE
3222
LOG_QUERIES = False
3323

0 commit comments

Comments
 (0)