How to close connection from EasySeedLinkClient


I use EasySeedLinkClient to connect a seedlink server and receive data. To terminate a connection, I use CRTL+c and close(). But I suspect it is actually not properly terminating the connection with the server. How to make sure to do so? Should I rather use terminate?



Hi Fred, sorry but I can not help with that issue. Hopefully somebody else has some insights. I assume you are referring to some old discussion in Easy-to-use SeedLink interface by bmorg · Pull Request #876 · obspy/obspy · GitHub?

If you are worried about CTRL-C not calling close(), I think you could wrap your code in a try/except KeyboardInterrupt maybe? No idea about these discussions about termination of seedlink connection…

Thanks a lot, I will discuss the issue there.