You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In resolving issue #3 I used a timeout to early-return and avoid waiting forever on a TCP connection that's dead. Unfortunately, that still leaves the TCP connection held in a stale go-routine.
Either find a way to kill the go-routine and drop things that way, or use exec.Command() on BSDs to invoke sudo tcpdrop and write a sudo rule to permit this, and figure out a way to make that secure against arbitrary drops (small races probably acceptable).
The text was updated successfully, but these errors were encountered:
and have tcpdrop-port-11371 be a script which invokes lsof on the pid provided, checks that it's owned by the SKS runtime user, look for remote connections on port 11371 and then invoke tcpdrop on each of those.
Of course, that would kill all outstanding connections, so either give it two parameters, second being a particular IP, or just flag that this will be needed, and later if the flag is set after spidering is complete, then invoke the script and clean them all at once.
In resolving issue #3 I used a timeout to early-return and avoid waiting forever on a TCP connection that's dead. Unfortunately, that still leaves the TCP connection held in a stale go-routine.
Either find a way to kill the go-routine and drop things that way, or use
exec.Command()
on BSDs to invokesudo tcpdrop
and write a sudo rule to permit this, and figure out a way to make that secure against arbitrary drops (small races probably acceptable).The text was updated successfully, but these errors were encountered: