[ENet-discuss] ENet and multiple clients
Kevin Gadd
kevin.gadd at gmail.com
Fri Oct 5 17:53:14 PDT 2007
Make sure you're servicing/polling your hosts frequently. I've experienced
issues when sending off too many packets at once (in the neighborhood of
thousands of packets) without servicing/polling in the interim; I think
because the amount of time it then takes to service and dispatch all the
packets is long enough for the connections to time out.
Is this the use case you're having a problem with? Or is it more of an issue
that arises after the application has been running for a long time? If it
occurs after the app's been running for a long time, I would tend to suspect
a bug or memory leak or scaling issue in your software, not a bug in enet
(though anything's possible). I assume you're running in debug mode and
checking for access violations, etc.?
On 10/5/07, Lee Salzman <lsalzman1 at cox.net> wrote:
>
> If by freeze you mean an actual lockup in the server, then it is most
> likely something in your code. I've never observed any kind of hard
> lockup in ENet in 6 years.
>
> Lee
>
> GhostManZero wrote:
> > I've been having quite a bad problem with ENet, depending on the
> > ammount of data i send to myself (summoning multiple client programs
> > to connect to a server program and constantly sending messages to the
> > server), after awhile my server program simple freezes and all clients
> > may even get disconnection events (its not certain).
> >
> > I'd like to know what could cause such behaviour, besides my own
> > programming. I'm using ENet 1.1 on a C++ program.
> >
>
> _______________________________________________
> ENet-discuss mailing list
> ENet-discuss at cubik.org
> http://lists.cubik.org/mailman/listinfo/enet-discuss
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.cubik.org/pipermail/enet-discuss/attachments/20071005/c0bc12c0/attachment.htm
More information about the ENet-discuss
mailing list