On Wed, 5 Jul 2000, Aaron Levitt wrote:
> Well.. in the continuing saga of Mac VS *nix, I was cruising along
> fine with the latest version of netatalk (netatalk-1.4b2+asun2.1.4) on
> a RH6.2 box and have come across a new issue. It seems there is a max
> connections of 20 someplace (I would guess in the code). In
> /usr/local/atalk/etc/netatalk.conf, it doesn't seem to matter what you
> have AFPD_MAX_CLIENTS= set to (I have mine at 150), and it still only
> allows 20 connections.
>
> The only thing I can find that seems to point to the max connections
> is in the source tree (in my case
> /usr/local/src/netatalk-1.4b2+asun2.1.4) /libatalk/dsi/ there is a
> file dsi_tcp.c. In this file is this line:
>
> #define DSI_TCPMAXPEND 20 /* max # of pending connections */
>
> Not being too knowledgable in programming, I didn't want to start
> making changes in the code. Is this where the problem lies?? Has
> anyone else run into similar issues with max connections in the latest
> release?? Is there any workaround at this time?? This is, without a
> doubt, a major show-stopper since my network has a fairly large number
> of macs.
Actually it is options->connections in etc/afpd/afp_options.c which sets
the maximum connection count. This defaults to 20, but can be set to
something else with the -c command line option to afpd. I would check
that your startup script is actually reading the value you expect from
your netatalk.conf file. Maybe try putting a "echo ${AFPD_MAX_CLIENTS}"
in it somewhere to see.
Andy