You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
EventList: start judgment conditions have problems .
You should not start with "status will follow" end with "statuscomplete"
I think a good judgment is to start with EventList: start, EventList: Complete end
your code in manager.py 336 line
` if 'status will follow' in line:
status = True
wait_for_marker = True
lines.append(line)
# line not ending in \r\n or without ':' isn't a
# valid header and starts multiline response
if not line.endswith('\r\n') or ':' not in line:
multiline = True
# Response: Follows indicates we should wait for end
# marker --END COMMAND--
if not (multiline or status) and line.startswith('Response') and \
line.split(':', 1)[1].strip() == 'Follows':
wait_for_marker = True
# same when seeing end of multiline response
if multiline and (line.startswith('--END COMMAND--') or line.strip().endswith('--END COMMAND--')):
wait_for_marker = False
multiline = False
# same when seeing end of status response
if status and 'StatusComplete' in line:
wait_for_marker = False
status = False
if not self._connected.isSet():
break`
My advice
` if 'EventList: start' in line:
status = True
wait_for_marker = True
lines.append(line)
# line not ending in \r\n or without ':' isn't a
# valid header and starts multiline response
if not line.endswith('\r\n') or ':' not in line:
multiline = True
# Response: Follows indicates we should wait for end
# marker --END COMMAND--
if not (multiline or status) and line.startswith('Response') and \
line.split(':', 1)[1].strip() == 'Follows':
wait_for_marker = True
# same when seeing end of multiline response
if multiline and (line.startswith('--END COMMAND--') or line.strip().endswith('--END COMMAND--')):
wait_for_marker = False
multiline = False
# same when seeing end of status response
if status and 'EventList: Complete' in line:
wait_for_marker = False
status = False
if not self._connected.isSet():
break`
The text was updated successfully, but these errors were encountered:
EventList: start judgment conditions have problems .
You should not start with "status will follow" end with "statuscomplete"
I think a good judgment is to start with
EventList: start
,EventList: Complete
endyour code in manager.py 336 line
` if 'status will follow' in line:
status = True
wait_for_marker = True
lines.append(line)
My advice
` if 'EventList: start' in line:
status = True
wait_for_marker = True
lines.append(line)
The text was updated successfully, but these errors were encountered: