---
name: "Jifty::Server::Prefork::NetServer"
section: "3pm"
platform: "linux"
package: "libjifty-perl"
version: "0.91117+dfsg-3"
release: "Debian 6.0 (Squeeze)"
platforms: ["linux"]
url: "https://new.carta.tech/Jifty::Server::Prefork::NetServer"
---

# Jifty::Server::Prefork::NetServer(3pm)

Sets up children for Jifty::Server::Prefork

## NAME

Jifty::Server::Prefork::NetServer - Sets up children for Jifty::Server::Prefork

## METHODS

### new

Store the created Net::Server::PreFork object away after creating it.

### pre\_loop\_hook

Tear down the database connection before falling into the accept loop, so that there is no shared database connection for children to inherit.

### child\_init\_hook

Sets up the database connection when spawning a new child.

### log

Log messages should use Jifty's Log::Log4perl infrastructure, not STDERR.
