Skip to content

Commit

Permalink
Fixes #12: Doesn't work on Windows
Browse files Browse the repository at this point in the history
Using multiprocessing module on Windows leads to unexpected errors due
to pickling. Reference Python bug here
https://bugs.python.org/issue11119 which is now marked as fixed, but
problem still persists as reported by users.
  • Loading branch information
abhinavsingh committed Oct 17, 2018
1 parent 5383abf commit d26b611
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions proxy.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@
:license: BSD, see LICENSE for more details.
"""
import sys
import multiprocessing
import datetime
import argparse
import logging
import socket
import select
import threading

VERSION = (0, 3)
__version__ = '.'.join(map(str, VERSION[0:2]))
Expand Down Expand Up @@ -322,7 +322,7 @@ def __str__(self):
return '<ProxyConnectionFailed - %s:%s - %s>' % (self.host, self.port, self.reason)


class Proxy(multiprocessing.Process):
class Proxy(threading.Thread):
"""HTTP proxy implementation.
Accepts connection object and act as a proxy between client and server.
Expand Down

0 comments on commit d26b611

Please sign in to comment.