-
Notifications
You must be signed in to change notification settings - Fork 40
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
Idea: Is it possible to wait for a given/ hardcoded custom line ending "end_of_field" vs chunk_size #59
Comments
https://pynative.com/python-regex-flags/ I just edit sseclient.py which i found at the appdata folder Python\Python38\site-packages https://docs.python.org/3/library/io.html#io.BufferedReader https://stackoverflow.com/questions/57726771/what-the-difference-between-read-and-read1-in-python
|
As test purpose i stripped out the parse, for my purpose perspective the Signify Hue Bridge
|
Hello a newbie question
Idea: Is it possible to wait for a given/ hardcoded custom line ending "end_of_field" vs chunk_size
for example this one
end_of_field = re.compile(r'\n\n\r\n\x27|\r\n\x27') # \n\n\r\n' or \r\n'
My Signify Hue Bridge does send varialbe lenght of event message data which end with the
\n\n\r\n'
or with
\r\n'
incase of long event message data then the Hue Bridge does split up in arround 4096bytes chunks followed\r\n'
and the end of any event message data is always indicated by the
\n\n\r\n'
maybe chunk_size behaviour can be set to None to skip completely or set to chunk_size a max safeguard value like 10000
or for now i set chunk_size to 9
\n\n\r\n'
The text was updated successfully, but these errors were encountered: