Merge pull request #1863 from GSA/try_gevent

move monkey patching
This commit is contained in:
ccostino
2025-07-28 13:12:07 -04:00
committed by GitHub
2 changed files with 8 additions and 8 deletions

View File

@@ -1,12 +1,16 @@
##!/usr/bin/env python
from __future__ import print_function
from flask import Flask
from werkzeug.serving import WSGIRequestHandler
from gevent import monkey
from app import create_app, socketio # noqa: F401
monkey.patch_all() # this has to be called before other imports or monkey patching doesn't happen
from flask import Flask # noqa
from werkzeug.serving import WSGIRequestHandler # noqa
from app import create_app, socketio # noqa
WSGIRequestHandler.version_string = lambda self: "SecureServer"

View File

@@ -1,7 +1,3 @@
from gevent import monkey
monkey.patch_all() # this has to be called before other imports or monkey patching doesn't happen
import os # noqa
import socket # noqa
import sys # noqa