aisstream / issues

7 stars 3 forks source link

"concurrent connections per user exceeded" error when sending additional subscription messages #77

Open bobeast opened 4 months ago

bobeast commented 4 months ago

According to the docs, changing the bbox is just a matter of sending another subscription request with the updated bbox. However, when I do so I get back an error ("concurrent connections per user exceeded") and the socket is closed. Should I not send the APIKey in the second request? Or maybe this is related to the recent load-shedding work...

gbe668 commented 4 months ago

I observed the same thing. So i modified my code to close the socket, wait for 5 seconds and reopen the socket with the new bbox and the APIkey.

bobeast commented 4 months ago

Yeah. I was thinking I'd have to do the same in the absence of a fix.

aisstream commented 4 months ago

This appears to be a bug. We will look into this issue shortly.

bobeast commented 4 months ago

Awesome. Thanks for looking into it.