Uninett / zinolib

Python library for zino
Apache License 2.0
1 stars 3 forks source link

Notification socket gets broken pipe when behind a firewall #62

Closed runborg closed 2 weeks ago

runborg commented 3 weeks ago

This happens because it is not possible to manually send "keepalive" packets in this notification socket. Then the firewall will tear down the connection after a set inactivity timeout.

I Really do not know exactly where this ticket belongs, as zinolib 0.9 do not have a form of keepalive.. but curitz have created a keepalive by asking for ticket 0 every once in a while.

There should be implemented a way to ensure that the notification socket will not break. it might be that this should be fixed in the zino server directly or some way in the client but i'm creating the ticket here for reference.

podliashanyk commented 3 weeks ago

Related discussion https://github.com/Uninett/Howitz/discussions/105

runborg commented 2 weeks ago

It looks like this pr will fix the issue reported. looking at the firewall logs sessions are no longer decreasing its timeout into a "nonsafe" area where sessions are cleared on the firewall. i've for now only tested this for the ntie session, will test for both sessions