bug-apl
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-apl] Solved: Unix socket connection failed


From: Elias Mårtenson
Subject: Re: [Bug-apl] Solved: Unix socket connection failed
Date: Thu, 24 Jul 2014 18:59:25 +0800

Sorry, I accidentally hit send… Here's the rest:

In the following call can be found in bot Svar_DB.cc and the APserver, you can find the following:

    strcpy(remote.sun_path + ABSTRACT_OFFSET, server_sockname);

ABSTRACT_OFFSET is #defined to 1. This means that the first character of the path will be 0 (there is a memset() before), and of course the call to bind() will fail.

Removing the addition of ABSTRACT_OFFSET will fix the problem.

I've been looking at the code and I have been trying to figure out why the code was written in this way to begin with. Any ideas?

Regards,
Elias


On 24 July 2014 18:55, Elias Mårtenson <address@hidden> wrote:
I had never been able to get APserver to work properly, and particularly not with the Unix Domain Sockets.

But, I finally figured it out. :-)

In the following call can be found in bot Svar_DB.cc and the APserver.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]