Anki Forums

Anki doesn't close sockets properly

I use Anki Desktop on Mac OS X and every time I sync changes with the server (by pressing ‘y’) I see another socket being opened and the old ones stuck in CLOSE_WAIT state. The previous sockets aren’t closed at all.

It starts like this:
lsof -nPi | grep Anki
Anki 415 jumar 17u IPv4 0xb9eda7e482df94e7 0t0 TCP 127.0.0.1:63334 (LISTEN)
Anki 415 jumar 55u IPv4 0xb9eda7e48153f747 0t0 TCP 10.0.0.1:63337->88.198.11.78:443 (ESTABLISHED)

After a few refreshes I have this:
lsof -nPi | grep Anki
Anki 415 jumar 17u IPv4 0xb9eda7e482df94e7 0t0 TCP 127.0.0.1:63334 (LISTEN)
Anki 415 jumar 55u IPv4 0xb9eda7e48153f747 0t0 TCP 10.0.0.1:63337->88.198.11.78:443 (CLOSE_WAIT)
Anki 415 jumar 60u IPv4 0xb9eda7e4a44824e7 0t0 TCP 10.0.0.1:63450->88.198.11.78:443 (CLOSE_WAIT)
Anki 415 jumar 61u IPv4 0xb9eda7e46f236287 0t0 TCP 10.0.0.1:63365->88.198.11.78:443 (CLOSE_WAIT)

Is this a known issue? Is there some problem with Anki not closing the connections?

Can you reproduce the problem with the latest alpha?

https://betas.ankiweb.net/#/