multithreading

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
eugene2006
Forum Newbie
Posts: 19
Joined: Fri Oct 28, 2005 6:09 pm

multithreading

Post by eugene2006 »

hello!
I have a list of socks proxy and i want to check them wether they are alive or not.
i od fsocketopen to host and port, and if host is not available then it takes a long time until TTL expired and fsocketopen says cannot connect to host.

so is there a way to make
checking of 5 or 10 socks proxies simlutaneous
how to make optimized and fast socks checking? before socket open ping might help?
how to reduce time of try-to-connect, lets say to 1 or 2 seconds per each socks proxy?
Post Reply