Thread: Bad file descriptor in multi thredding environ ment

  1. #1
    Registered User
    Join Date
    Sep 2012
    Location
    Mumbai
    Posts
    3

    Lightbulb Bad file descriptor in multi thredding environ ment

    I am running 3 Applications

    1. proxy
    2. CommandServer
    3. Data server

    Multiple proxies are running on different machines and all will connect to single command server, only one command server is running.

    For each proxy request, command server should connect to multiple data servers and fetch the details and send to proxy.

    This setup is running fine for single proxy. When I run multiple proxy's from different machines, I am getting bad file descriptor error while sending data to proxy in CommandServer .
    But actually value is present for descriptor(socket).
    for each proxy one socket is created and one thread is created in CommandServer to handle send and receive data


    The logger message of commad server is like this

    5:56 :: Error :Error in sending data to client from CTranSocket::Send():Bad file descriptor , socket value 6

    Problem is in working with linux. The above setup is running fine in windows

    Please help me

    Regards
    Mahesh Parimi
    Last edited by maheshparimi; 09-28-2012 at 12:32 AM. Reason: to make the problem to more understand

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 6
    Last Post: 11-30-2011, 12:49 AM
  2. opening a file Descriptor
    By vin_pll in forum C++ Programming
    Replies: 5
    Last Post: 11-26-2007, 05:03 AM
  3. How to read the file descriptor
    By vin_pll in forum C++ Programming
    Replies: 2
    Last Post: 11-26-2007, 01:58 AM
  4. file descriptor redirection
    By msenthil in forum C Programming
    Replies: 15
    Last Post: 05-24-2007, 08:45 AM
  5. why wrong file descriptor ??
    By alokdotnet in forum C Programming
    Replies: 2
    Last Post: 08-13-2006, 12:59 AM

Tags for this Thread