- function PageFlush($socket, $enc, $curtime, $kalive, $header_out, $body)
+
+
+ function PendingPage($socket)
+ {
+ $this->socket = $socket;
+ }
+
+ static function pendingpage_waiting($socket, $method, $header, $get, $post, $cookie, $path, $addr)
+ {
+ $thiz = new PendingPage($socket);
+
+ // TODO
+ }
+
+ function try_wait($curtime)
+ {
+ // if completed return TRUE to allow data to be processed,
+ // if timeout or max content dimension is exceeded move to flushing
+ }
+
+ static function pendingpage_flushing($socket, $enc, $curtime, $kalive, $header_out, $body)
+ {
+ $thiz = new PendingPage($socket);
+
+ $thiz->to_flushing($enc, $curtime, $kalive, $header_out, $body);
+
+ return ($thiz);
+ }
+
+ function to_flushing($enc, $curtime, $kalive, $header_out, $body)