[ENet-discuss] enet is dropping packets

Len Holgate len.holgate at jetbyte.com
Wed Jun 20 08:16:49 PDT 2012


I'm pretty sure the peer id limit in this version of enet is due to the
reduced number of bits available in the header for peer ids...

But it's been a while since I looked.

Len
http://www.serverframework.com

> -----Original Message-----
> From: enet-discuss-bounces at cubik.org [mailto:enet-discuss-
> bounces at cubik.org] On Behalf Of James B
> Sent: 20 June 2012 2:52 PM
> To: enet-discuss at cubik.org
> Subject: Re: [ENet-discuss] enet is dropping packets
> 
> 
> Thanks for sending this, you just saved me a bug hunt.  I had copy and
pasted
> my code from the client to my lobby server, which is intended to handle
> 1000's of connections, and the peercount was set to 4 lol.  After a little
> digging it appears that peercount maximum is
> ENET_PROTOCOL_MAXIMUM_PEER_ID = 4095, is there any reason this
> maximum is set?  Can ENET_PROTOCOL_MAXIMUM_PEER_ID safely be set
> to 16,000?
> 
> James
> 
> ----------------------------------------
> > From: dreijer at echobit.net
> > To: enet-discuss at cubik.org
> > Date: Wed, 20 Jun 2012 01:32:29 -0500
> > Subject: Re: [ENet-discuss] enet is dropping packets
> >
> > Oh boy. *facepalm*
> >
> > I found the problem. After stepping through
> enet_protocol_handle_connect()
> > in the debugger, I noticed that there weren't any peers available in the
> > 'peers' array.
> >
> > And sure enough, I'd called enet_host_create() with a peerCount of 99
(set
> > way back in the day when I originally switched to enet). That would
explain
> > why things went haywire as more users came online.
> >
> > Thanks to everyone for their suggestions.
> >
> > / Soren
> 
> _______________________________________________
> ENet-discuss mailing list
> ENet-discuss at cubik.org
> http://lists.cubik.org/mailman/listinfo/enet-discuss



More information about the ENet-discuss mailing list