Skip to content
Snippets Groups Projects
Commit a37e5520 authored by dark-lbp's avatar dark-lbp
Browse files

Fix StreamSocket on OS X

This fix #162
parent 136b76f4
No related branches found
No related tags found
No related merge requests found
......@@ -19,6 +19,7 @@ from utils import warning,get_temp_file,PcapReader,wrpcap
import plist
from error import log_runtime,log_interactive
from base_classes import SetGen
from supersocket import StreamSocket
#################
## Debug class ##
......@@ -123,7 +124,7 @@ def sndrcv(pks, pkt, timeout = None, inter = 0, verbose=None, chainCC=0, retry=0
if remaintime <= 0:
break
r = None
if arch.FREEBSD or arch.DARWIN:
if not isinstance(pks, StreamSocket) and (arch.FREEBSD or arch.DARWIN):
inp, out, err = select(inmask,[],[], 0.05)
if len(inp) == 0 or pks in inp:
r = pks.nonblock_recv()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment