Connecting Tech Pros Worldwide Forums | Help | Site Map

Regarding Multithreading Client Socket Failure

Newbie
 
Join Date: Jul 2007
Posts: 2
#1: Jul 19 '07
Hi All,

My Application is developed using C on linux. It is a multithreaded application and 10 threads are waiting for message in pool.Each thread receives message continusly in a while loop from an another module using msg queue and process the message, creates an URL,opens socket and invokes http request to a another application which has been developed in .NET and receives the 2000k response from the .NET application too and closing the socket.Its working fine but the problem occurs when my application (C and linux) receives a certion numbers ( perticular 1020) of message. After receiving 1020 numbers of messages and processing them without giving any error,it gives error "could not open socket" at the receiption of 1021st message and so on.

Please suggest me regarding the above problem ASAP.

Any kind of suggestion will be appriciate.

Thanks in advance

Jyoti

Reply


Similar C / C++ bytes