Not getting ConnectionRejected when over MaxConnections

10 views
Skip to first unread message

David Gouveia

unread,
May 4, 2010, 10:35:47 AM5/4/10
to lidgren-network
Hello,

Since today is the first day I'm looking into Lidgren, I might be
missing out something, but according to the following post on the
wiki:

"ConnectionRejected Emitted when a connection is rejected by the
library, for example because MaxConnections has been reached. It
contains a string and is disabled by default."

I should be getting a ConnectionRejected message when the
MaxConnection limit is exceeded, which I'm not; the client keeps
trying to connect another 4 or 5 times, then disconnects automatically
with a "No answer from remote host message".

I'm wondering if that's the desired behaviour and the article is
outdated, or if it's really a problem.

Best regards,
David Gouveia

--
You received this message because you are subscribed to the Google Groups "lidgren-network" group.
To post to this group, send email to lidgren...@googlegroups.com.
To unsubscribe from this group, send email to lidgren-netwo...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/lidgren-network?hl=en.

lidgren

unread,
May 4, 2010, 10:50:20 AM5/4/10
to lidgren-network
Yes, it seems to be a bug. I'll get right on it.

--michael

David Gouveia

unread,
May 4, 2010, 10:50:42 AM5/4/10
to lidgren-network
PS: I do have the ConnectionRejected MessageType enabled, and I do get
a ConnectionRejected message when the Server calls Disapprove (thanks
to rev277), so if any, the problem should be related to MaxConnections.

David Gouveia

unread,
May 4, 2010, 10:51:45 AM5/4/10
to lidgren-network
You beat me to it :) Talk about fast feedback. Thanks!

lidgren

unread,
May 4, 2010, 11:00:43 AM5/4/10
to lidgren-network
A fix has now been checked into the repository.

ConnectionRejected is unfortunately a bit vaguely defined if it's
supposed to notify the server someone was rejected or if it's meant
for the connector to tell him he was rejected. Right now it's a bit of
both. This has been solved in gen3, where there is no such message
type... a Disconnected message is sent if the server is full.

--michael

David Gouveia

unread,
May 4, 2010, 11:31:18 AM5/4/10
to lidgren-network
Thanks, the fix worked wonders.

On another note, are we encouraged to use gen3 already or keep to the
main line of development? And any reason why gen3 is in trunk and not
a branch? Since I'm just starting to look into incorporating Lidgren
into my application, I'm guessing now would be the best time to make a
choice.

lidgren

unread,
May 4, 2010, 2:38:36 PM5/4/10
to lidgren-network
Gen3 is rapidly becoming ready for consumption, but I haven't yet
decided how to "launch" it. The best thing would be to have a
different google project for it, to get issues etc separated from the
current version, but I want to keep the name and incoming link
references...

--michael

Chris Cowherd

unread,
May 4, 2010, 2:57:08 PM5/4/10
to lidgren...@googlegroups.com
Can you have a separate Gen3 branch in the existing repository?  

lidgren

unread,
May 4, 2010, 3:43:25 PM5/4/10
to lidgren-network
Yes, but they will share the same issues list, wiki pages etc which is
less than optimal.


On May 4, 8:57 pm, Chris Cowherd <mad...@gmail.com> wrote:
> Can you have a separate Gen3 branch in the existing repository?
>
>
>
>
>
> On Tue, May 4, 2010 at 11:38 AM, lidgren <lidg...@gmail.com> wrote:
> > Gen3 is rapidly becoming ready for consumption, but I haven't yet
> > decided how to "launch" it. The best thing would be to have a
> > different google project for it, to get issues etc separated from the
> > current version, but I want to keep the name and incoming link
> > references...
>
> > --michael
>
> > On May 4, 5:31 pm, David Gouveia <orpheustheb...@gmail.com> wrote:
> > > Thanks, the fix worked wonders.
>
> > > On another note, are we encouraged to use gen3 already or keep to the
> > > main line of development? And any reason why gen3 is in trunk and not
> > > a branch? Since I'm just starting to look into incorporating Lidgren
> > > into my application, I'm guessing now would be the best time to make a
> > > choice.
>
> > > Best regards,
> > > David Gouveia
>
> > > --
> > > You received this message because you are subscribed to the Google Groups
> > "lidgren-network" group.
> > > To post to this group, send email to lidgren...@googlegroups.com.
> > > To unsubscribe from this group, send email to
> > lidgren-netwo...@googlegroups.com<lidgren-network%2Bunsubscribe@ googlegroups.com>
> > .
> > > For more options, visit this group athttp://
> > groups.google.com/group/lidgren-network?hl=en.
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "lidgren-network" group.
> > To post to this group, send email to lidgren...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > lidgren-netwo...@googlegroups.com<lidgren-network%2Bunsubscribe@ googlegroups.com>
> > .

Chris Cowherd

unread,
May 4, 2010, 4:16:52 PM5/4/10
to lidgren...@googlegroups.com
oh ya.  So, I haven't looked at Gen3 yet but perhaps with some bridging classes there may be a way to combine the projects? This might give Gen2 people a way to start using the newer features and migrate to the latest. Then at some point start marking old classes as deprecated.

Not sure if it would be worth the work or not but I would sure use it.
Reply all
Reply to author
Forward
0 new messages