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

syslog.read() never returns on break #26

Open
shawnkirsch opened this issue Aug 15, 2016 · 3 comments
Open

syslog.read() never returns on break #26

shawnkirsch opened this issue Aug 15, 2016 · 3 comments

Comments

@shawnkirsch
Copy link

looks like 9.3.3 broke something in the syslog.read() command.

I can't ever get it to return, it just hangs.

I need this because I don't want previous syslogs, just the syslog that is from the moment that I launch it.

@shawnkirsch
Copy link
Author

any idea if you can fix this?

@mountainstorm
Copy link
Owner

are you calling it via code or the command line? All I do is call read on the underlying socket, so if it blocks so do I. The command line tool just calls this in a loop - hence you should get all the syslog the device has available. If you want to discard previous stuff you need to read it all and discard it.

you could try calling with a smaller read size (default is 1024) and see if that helps.

It appears to be working correctly on my device - so I'll need more info on whats going on to be able to 'fix' it

@shawnkirsch
Copy link
Author

Calling it via code. I'll check out with smaller read size. I ended up converting all the output from syslog into a date time object, and compare with current time on my system, get rid of anything that is older than the current time the test started.

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

2 participants