Sophie

Sophie

distrib > Mageia > 4 > x86_64 > by-pkgid > f800694edefe91adea2624f711a41a2d > files > 9788

php-manual-en-5.5.7-1.mga4.noarch.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>Connection pool</title>

 </head>
 <body><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="mysqlnd-mux.architecture.html">Architecture</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="mysqlnd-mux.sharing_connections.html">Sharing connections</a></div>
 <div class="up"><a href="mysqlnd-mux.concepts.html">Concepts</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div><hr /><div id="mysqlnd-mux.connection_pool" class="section">
  <h2 class="title">Connection pool</h2>
  <p class="para">
   The plugins connection pool is created when PHP initializes its modules
   (<em>MINIT</em>) and free&#039;d when PHP shuts down the modules
   (<em>MSHUTDOWN</em>). This is the same as for persistent MySQL connections.
  </p>
  <p class="para">
   Depending on the deployment model, the pool is used for the duration of one
   or multiple web requests. Network connections are bound to the lifespan
   of an operating system level process. If the PHP process serves multiple
   web requests as it is the case for Fast-CGI or threaded web server deployments,
   then the pooled connections can be reused over multiple connections.
   Because multiplexing means sharing connections, it can even happen with a
   threaded deployment that two threads or two distinct web requests are
   linked to one pooled network connections.
  </p>
  <p class="para">
   A pooled connection is explicitly closed once the last reference to it
   is released. An implicit close happens when PHP shuts down its modules.
  </p>
 </div><hr /><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="mysqlnd-mux.architecture.html">Architecture</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="mysqlnd-mux.sharing_connections.html">Sharing connections</a></div>
 <div class="up"><a href="mysqlnd-mux.concepts.html">Concepts</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div></body></html>