Results 1 to 2 of 2
  1. #1
    Senior Member
    Join Date
    Aug 2014
    Posts
    63

    Exception in TcpClient connection

    hello,

    today when adapters running, one of them made exception in :
    TcpClient reqrepSocket = new TcpClient(host, reqrepPort);

    the exception said: the machine refuse it.

    and the exception happened repeatedly today. what may cause that?

  2. #2
    Administrator
    Join Date
    Feb 2012
    Location
    Milano
    Posts
    456
    Maybe the Proxy Adapter is already connected on the same port?

    Please note that if the Proxy Adapter (on behalf of the Lightstreamer Server) didn't detect any disconnection and so considering itself connected, it does not open the ports for listening.
    Hence, it has no knowledge at all of external connection attempts of the new instance. The connection attempt by the Remote Adapter is directly refused by the operating system.

    The comunication between Remote Adapters and ProxyAdapter are implemented over TCP sockets created directly by the Remote Adapter. So, if you detect such a situation (that is, a Remote Adapter that fails to connect on a port), you should verify whether the Server is really connected on that ports.
    So, if you see an established connection on a port, you can identify the related remote host and remote port.
    Then, on the remote host, with netstat or a similar tool, you can see if the system can detect the PID of the process holding the connection.

    Regards,
    Giuseppe

 

 

Similar Threads

  1. Replies: 1
    Last Post: February 2nd, 2016, 08:07 PM
  2. Lighstreamer connection exception [iOS]
    By DrAma in forum Client APIs
    Replies: 8
    Last Post: December 11th, 2014, 01:23 PM
  3. FATAL EXCEPTION: Connection close activity
    By thomas.renger@gmail.com in forum Client APIs
    Replies: 2
    Last Post: January 10th, 2011, 04:07 PM
  4. DataProviderServer exception
    By ap7256 in forum Adapter APIs
    Replies: 2
    Last Post: October 18th, 2007, 11:15 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT +1. The time now is 08:38 AM.