+ $this->socks_set($pendpage->socket_get(), NULL, $pendpage);
+ }
+
+ function pendpage_rem($pendpage)
+ {
+ $sock = $pendpage->socket_get();
+ if (($key = array_search($pendpage, $this->pending_pages)) !== FALSE) {
+ unset($this->pending_pages[$key]);
+ }
+ else {
+ fprintf(STDERR, "WARNING: pendpage not found\n");
+ }
+ $this->socks_unset($sock);
+ fprintf(STDERR, "PP_REM: %d\n", intval($sock));
+ }
+
+
+ function pendpage_try_addwait(&$new_socket, $tout, $method, $header, $get, $post, $cookie, $path, $addr, $rest, $cont)
+ {
+ $pendpage = PendingPage::pendingpage_waiting($new_socket, $this->curtime, $tout, $method, $header, $get, $post, $cookie, $path, $addr, $rest, $cont);
+ /*
+ if ($pendpage->try_flush($this->curtime) == FALSE) {
+ // Add $pendpage to the pendpage array
+ */
+ $this->pendpage_add($pendpage);
+ /*
+ }
+ */