Talk:Purge function

From wikidev.net

I don't think socket_set_blocking() has any effect on write operations. See also [1] (http://se2.php.net/manual/en/function.stream-set-blocking.php). // Snok 20:08, 15 Jan 2004 (CET)

You're right, this would only make a difference if we actually read from the stream. I'm not shure if the sockets would wait the three seconds for a non-responsive Squid, will try it with a fake proxy address. -- Gwicke 20:15, 15 Jan 2004 (CET) Update: tried with a fake proxy entry, it doesn't wait but throws an error. So we could comment socket_set_blocking() out. We should catch the errors though. Should be more useful than reading the output. Squid only responds with headers, no content is sent anyway. Have to read up how to catch errors in php (why do i like python?). Gwicke 20:22, 15 Jan 2004 (CET)

Navigation