[Home] [Downloads] [Search] [Help/forum]

Gammon Forum

See www.mushclient.com/spam for dealing with forum spam. Please read the MUSHclient FAQ!

[Folder]  Entire forum
-> [Folder]  MUDs
. -> [Folder]  General
. . -> [Subject]  Issue with telnet clients, crash on bigger data
Home  |  Users  |  Search  |  FAQ
Username:
Register forum user name
Password:
Forgotten password?

Issue with telnet clients, crash on bigger data

It is now over 60 days since the last post. This thread is closed.     [Refresh] Refresh page


Posted by Jedhi   (37 posts)  [Biography] bio
Date Thu 14 Jul 2016 04:41 AM (UTC)

Amended on Thu 14 Jul 2016 04:42 AM (UTC) by Jedhi

Message
Hello!

I was entertaining the idea of writing my own MUD client for aardwolf, but ran into the problem. If i spam areas command few times, the client exits with a message, that server closed the connection.

First i figured it was my nodejs code, but then i tried same thing with telnet client that comes with Arch Linux.


➜  ~ telnet aardmud.org
Trying 66.228.127.34...
Connected to aardmud.org.
Escape character is '^]'.
#############################################################################
##[        --- Welcome to Aardwolf MUD ---        ]##########################
##[                                               ]############ /"  #########
##[         Players Currently Online: 199         ]########  _-`"""', #######
##[                                               ]#####  _-"       )  ######
##[     Game Last Rebooted on 16 Feb 19:51:19     ]### _-"          |  ######
################################################### _-"            ;  #######
######################################### __---___-"              |  ########

...

[62703/62703hp 23066/23101mn 3562/3562mv 0qt 307tnl] > areas
             [ Listing all areas in range 1 to 210 ]

From To   Lock  Builder          Area Name                      
---- ---- ----  ---------------  ------------------------------
   1    5       Domain           Kimr's Farm                   
   1    5       Klauwaard        Lowlands Paradise '96   

...

  80  100       Domain           The Realm of the Hawklords    
  80  100   50  Windjammer & Ja  Wedded Bliss                  
  80  110   50  Maerchyng        Anthrox                       
  80  110   50  Terrill & Citro  Island of Lost Time           
  80  110   50  Lumina Timeghos  Realm of the Firebird         
  80  130   60  Chade            Deathtrap Dungeon             
  90  110   70  Schizo & Cera    Pompeii                       
  90  110 onnection closed by foreign host.
➜  ~ 
➜  ~ telnet --version
telnet (GNU inetutils) 1.9.4
Copyright (C) 2015 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Written by many authors.



I have tried dedicated MUD clients like Mush, TinTin, Mudlet and none of them have this problem.

Any idea what do mud clients have that telnet clients do not?
[Go to top] top

Posted by Jedhi   (37 posts)  [Biography] bio
Date Reply #1 on Thu 14 Jul 2016 01:57 PM (UTC)
Message
Got this "bug" fixed by enabling MCCP support!
[Go to top] top

Posted by Fiendish   USA  (1,641 posts)  [Biography] bio   Global Moderator
Date Reply #2 on Wed 20 Jul 2016 07:47 PM (UTC)

Amended on Wed 20 Jul 2016 07:48 PM (UTC) by Fiendish

Message
Sounds like you didn't actually fix the bug then, you just deferred it. The problem is that you've overrun your socket buffer by receiving more network data faster than you can handle it and clear it from the buffer. MUSHclient also has this problem because it doesn't grow its buffers. Do a note list on Aardwolf on board with many notes. Even with MCCP enabled you'll still get disconnected.

https://github.com/fiendish/aardwolfclientpackage
[Go to top] top

Posted by Nick Gammon   Australia  (21,324 posts)  [Biography] bio   Forum Administrator
Date Reply #3 on Wed 20 Jul 2016 09:46 PM (UTC)
Message
The network data should not arrive faster than the client can handle it. You may as well say you are reading a big file, and the program crashes because the file is over a megabyte. However you read it in chunks that the program can handle.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
[Go to top] top

Posted by Fiendish   USA  (1,641 posts)  [Biography] bio   Global Moderator
Date Reply #4 on Sat 23 Jul 2016 10:17 AM (UTC)

Amended on Sat 23 Jul 2016 10:18 AM (UTC) by Fiendish

Message
Note I think the word "crash" in the thread subject is wrong. It's a disconnect, not a crash. Every client I've tried, including MUSHclient, will disconnect from Aardwolf if you do a command that outputs a lot of information like `board ideas;note list`.

https://github.com/fiendish/aardwolfclientpackage
[Go to top] top

Posted by Nick Gammon   Australia  (21,324 posts)  [Biography] bio   Forum Administrator
Date Reply #5 on Sat 23 Jul 2016 08:51 PM (UTC)
Message
Quote:

MUSHclient also has this problem because it doesn't grow its buffers.

...

Every client I've tried, including MUSHclient, will disconnect from Aardwolf if you do a command that outputs a lot of information ...


So, it might be a bug in Aardwolf, then?

Maybe Aardwolf needs to grow its buffers? Or it hits an internal limit and just disconnects?

- Nick Gammon

www.gammon.com.au, www.mushclient.com
[Go to top] top

Posted by Fiendish   USA  (1,641 posts)  [Biography] bio   Global Moderator
Date Reply #6 on Sat 23 Jul 2016 09:43 PM (UTC)
Message
Yeah, you're probably right.

https://github.com/fiendish/aardwolfclientpackage
[Go to top] top

The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).

To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.


2,824 views.

It is now over 60 days since the last post. This thread is closed.     [Refresh] Refresh page

Go to topic:           Search the forum


[Go to top] top

Quick links: MUSHclient. MUSHclient help. Forum shortcuts. Posting templates. Lua modules. Lua documentation.

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.

[Home]


Written by Nick Gammon - 5K   profile for Nick Gammon on Stack Exchange, a network of free, community-driven Q&A sites   Marriage equality

Comments to: Gammon Software support
[RH click to get RSS URL] Forum RSS feed ( https://gammon.com.au/rss/forum.xml )

[Best viewed with any browser - 2K]    [Hosted at FutureQuest]