
Libdontdie is a shared library that can be injected into any application with the ld_preload mechanism. it is completely transparent to the application and therefore works equally well with closed-source programs and with languages like java that do not natively allow changing the tcp keep-alive parameters.