reduce sockets creation

Z

zehn

hi,

i wrote a TCP client socket script that would send data to a TCP
server. However, this script was being called 100 times per second and
it caused hugh amount of sockets created utilizing all the resources
in my server. Hence a "netstat -a" would show up with lots of
TIME_WAIT.

i was thinking if there is a way i could create the socket in
another script, and just allow multiple scripts to SEND data through
it? Hence it would just be like a single socket connection.

any examples would be great.

benny
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,906
Latest member
SkinfixSkintag

Latest Threads

Top