Skip to content

Commit 6427c1a

Browse files
authored
Don't enable health check server on OSS-Fuzz. (#2640)
1 parent ac49825 commit 6427c1a

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/python/bot/startup/health_check_responder.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
from http.server import HTTPServer
2020
import threading
2121

22+
from clusterfuzz._internal.base import utils
2223
from clusterfuzz._internal.system import process_handler
2324

2425
RESPONDER_IP = '0.0.0.0'
@@ -45,6 +46,10 @@ def do_GET(self): # pylint: disable=invalid-name
4546

4647
def run_server():
4748
"""Start a HTTP server to respond to the health checker."""
49+
if utils.is_oss_fuzz():
50+
# OSS-Fuzz's multiple instances per host model isn't supported yet.
51+
return
52+
4853
health_check_responder_server = HTTPServer((RESPONDER_IP, RESPONDER_PORT),
4954
RequestHandler)
5055
server_thread = threading.Thread(

0 commit comments

Comments
 (0)