We've also implemented the socket hijacking API in the upcoming Phusion Passenger 4: https://github.com/FooBarWidget/passenger/commit/c5b5b2e76034f7c7010c46aefc08967240eda122