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
Seedlink and multi threads #561
Comments
I think it is usually not necessary to connect to one seedlink server with more than one thread. Fetching multiple stations/channels can be handled in one client (see also sbonaime/seedlink_plotter#6). If multiple clients in threads connecting to different servers is not a problem (as I understood), then fixing this / looking into it is probably pretty low priority. |
This should fix obspy#561.
Hi! The anomalous thread behaviour is related to how the SeedLink connection object stores the retrieved data internally. The data is stored in two bytearrays inside an This is fixed in the commit referenced above. @bonaime: Your code runs fine for me now. Can you confirm this with the |
Hi |
@bonaime: Thank you for testing. I opened a new pull request. |
Fixed obspy.seedlink bugs caused by mixed usage of class/instance attributes. Fixes #561.
Fixed in #769. |
I have a problem when I use seedlink clients in threads.
Here is my code:
With just one thread, I don't have any problem, but with at least two, I have the following errors and warnings
with Mac OS 10.6.8, latest obspy dev version, python 2.7.4
on linux Opensuse , python 2.7.4:
After the backtrace has been recovered, the errors seems to disappear. Most of the first paquets are corrupted and not usable
When I use two different seedlink server (not in the same place ), I have less errors and warnings.
Maybe the threads share the same receiving buffer which is maybe too small and/or not updated quickly enough
WIth just one thread I don't have any problem
The text was updated successfully, but these errors were encountered: