Skip to content

Commit

Permalink
fixes #55, no need to monkey patch
Browse files Browse the repository at this point in the history
  • Loading branch information
miguelgrinberg committed Oct 23, 2014
1 parent 98bfb59 commit 22d4248
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions flask_socketio/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
from gevent import monkey
monkey.patch_all()

import os
import sys

@@ -235,10 +232,10 @@ def run(self, app, host=None, port=None, **kwargs):
port = int(server_name.rsplit(':', 1)[1])
else:
port = 5000
# don't allow override of resource, otherwise allow SocketIOServer
# don't allow override of resource, otherwise allow SocketIOServer
# kwargs to be passed through
kwargs.pop('resource', None)
self.server = SocketIOServer((host, port), app.wsgi_app,
self.server = SocketIOServer((host, port), app.wsgi_app,
resource='socket.io', **kwargs)
if app.debug:
def run_server():

0 comments on commit 22d4248

Please sign in to comment.