Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Avoid testing raw data? #13

Open
eight04 opened this issue Oct 25, 2021 · 0 comments
Open

Avoid testing raw data? #13

eight04 opened this issue Oct 25, 2021 · 0 comments

Comments

@eight04
Copy link
Owner

eight04 commented Oct 25, 2021

data = self.channel.recv(math.inf)
if on_data:
on_data(data)
self.stream.feed(data)
if should_stop(data):
return

It is possible that the string we want to match is split into two buffers so the needle never matches.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant