# How to close connection from EasySeedLinkClient

**URL:** <https://discourse.obspy.org/t/how-to-close-connection-from-easyseedlinkclient/1772>\
**Category:** Usage Questions\
**Created:** [August 22, 2023, 9:27am UTC](https://discourse.obspy.org/t/how-to-close-connection-from-easyseedlinkclient/1772 "2023-08-22T09:27:49Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Fred\_Massin](https://discourse.obspy.org/user_avatar/discourse.obspy.org/fred_massin/32/250_2.png) [@Fred\_Massin](https://discourse.obspy.org/u/Fred_Massin)\
**Post date:** [August 22, 2023, 9:27am UTC](https://discourse.obspy.org/t/how-to-close-connection-from-easyseedlinkclient/1772/1 "2023-08-22T09:27:49Z")

</div>

Hello

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`?

Cheers

Fred

---

<div class="post-metadata">

**Author:** ![megies](https://discourse.obspy.org/user_avatar/discourse.obspy.org/megies/32/9_2.png) [@megies](https://discourse.obspy.org/u/megies)\
**Post date:** [August 23, 2023, 10:01am UTC](https://discourse.obspy.org/t/how-to-close-connection-from-easyseedlinkclient/1772/2 "2023-08-23T10:01:07Z")

</div>

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](https://github.com/obspy/obspy/pull/876#issuecomment-60537414)?

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..

---

<div class="post-metadata">

**Author:** ![Fred\_Massin](https://discourse.obspy.org/user_avatar/discourse.obspy.org/fred_massin/32/250_2.png) [@Fred\_Massin](https://discourse.obspy.org/u/Fred_Massin)\
**Post date:** [August 23, 2023, 10:23am UTC](https://discourse.obspy.org/t/how-to-close-connection-from-easyseedlinkclient/1772/3 "2023-08-23T10:23:35Z")

</div>

Thanks a lot, I will discuss the issue there.
