LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   Question regarding sockets? (https://www.linuxquestions.org/questions/programming-9/question-regarding-sockets-872072/)

manohar 03-31-2011 01:39 AM

Question regarding sockets?
 
Hi,

Iam using socket programming in one of my problem. The scenario is like this.
=>one module is working as a socket server(process p1) is able to handle client sockets on that port.
=>one module is working as socket client (process p2) is connected to server socket and Tx/Rx data on this socket. This module has some more threads, based on received data from server socket it will connect to http on other thread and get information...
=>one more module is working as socket client (process p3) is also
connected to server socket and doing some other transactions.

Here my problem is when in presence of p2, p3 http connection taking more time than the expected. If we wont start p3(means only one server-client socket) then http connection is fast enough.
I hope this is the problem with the socket connection. Can you guys please help me with the solution, i cannot paste the code here. ...
I hope the above problem is understandable.

fbianconi 04-04-2011 07:20 AM

It doesn't especify much about your problem, what language, which library, so I'm going for a generic aproach.
P1 is launching a new thread for handling every incomming connection, right?


All times are GMT -5. The time now is 01:00 PM.