Re: Troubled with a socket connection problem... please help

From: Mark Kromski (mark.kromski_at_alcatel.be)
Date: 04/27/04


Date: Tue, 27 Apr 2004 08:18:49 +0200


DoesntMatter wrote:

> Mark Kromski wrote:
> > Can I post here an issue we have with Redhat, posting a message here
> > is our last option to find a solution.
> >
> > The problem:
> >
> > We are creating a socket (dgram) as a server.
> >
> > Then we want to connect on it with an other application as client.
> >
> > When we connect we always get : connection refused (errno 111)
> >
> > We do not face this problem when we do not use symbolic links to socket;
> >
> > we do have it, when we use symbolic links (IQ_bus -> /tmp/1010101)
> >
> > We are using RedHat 7.2 on an Intel PC.
> >
> > We're very troubled with this issue and hope that one of you can help us
> >
> > or point us to a solution or explanation.
> >
> >
> > Best Regards,
> >
> >
>
> Mark ,
>
> can you be a bit more specific ?
> What is the server exactly ? Do you mean a "named pipe" or a socket ?
> I assume it is mapped into the filesystem ?
> Is the link crossing filesystems ? If not , do you have the same problem
> with a hard link ?
>

The server is a process called ipc, which is creating the socket, which is
mapped into the filesystem; it is somewhere
in the user-directory, pointing to /tmp/10101 (name of the socket).

The nt-application connect to this socket, as a client.

When I isolate the total code of the sockets from the application (nt) and the
ipc-process, I do not have a problem; but I do not use symbolic links there.

Best Regards,

Mark

>
> ...

--
------------------------------------------------------
  Mark Kromski
  Tools responsible for aBU SW CC
  Alcatel BND
  Francis Wellesplein 1
  B 2018 Antwerpen
  Tel : +32 3 2407124
  GSM : +32 495 642929
------------------------------------------------------


Relevant Pages

  • Re: Network namespaces a path to mergable code.
    ... They store a cookie in the filesystem that roughly ... socket the lookup is done by the cookie retrieved from the filesystem. ... namespace and a find_by_name for socket in the abstract namespace. ...
    (Linux-Kernel)
  • Re: Troubled with a socket connection problem... please help
    ... Mark Kromski wrote: ... > mapped into the filesystem; ... > The nt-application connect to this socket, ... can't connect anymore when it becomes a symbolic link (even a symbolic ...
    (comp.os.linux.networking)
  • Re: Network namespaces a path to mergable code.
    ... They store a cookie in the filesystem that roughly ... socket the lookup is done by the cookie retrieved from the filesystem. ... namespace and a find_by_name for socket in the abstract namespace. ...
    (Linux-Kernel)
  • Re: [OT] inotify hack for locate
    ... socket and get told about particular file IO operations I'm interested ... in for the /whole/ of a filesystem. ... time anti-virus/anti-spam people want to do anyway. ... creation when you can trivially tap into mail as it arrives? ...
    (Linux-Kernel)
  • Re: I need ideas for running an exterior outlet
    ... Don't forget about the maximum current that socket allows. ... Good point Mark. ... The fixture wire in that lamp holder is 18 ga. ... box there with a GFCI receptacle and then go straight down to your ...
    (alt.home.repair)