Register forum user name Search FAQ

Gammon Forum

Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the password reset link.

Due to spam on this forum, all posts now need moderator approval.

 Entire forum ➜ MUSHclient ➜ Bug reports ➜ MUSHclient responds oddly to telnet negotiation

MUSHclient responds oddly to telnet negotiation

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


Posted by ThomasWatts   USA  (66 posts)  Bio
Date Sun 11 Nov 2007 10:51 PM (UTC)
Message
The following is the debugging output of just part of telnet negotiation between the server I am coding (mentioned in other threads under SMAUG), and MUSHclient. The string 'mushclient' is when responding to the query of if it WILL accept compressed responses from the server.
Server send IAC, WILL, COMPRESS2 (MCCP version 2)
MUSHclient respondes with the following:

Sun Nov 11 18:41:23 2007 :: [*****] BUG: ²V(3)
Sun Nov 11 18:41:23 2007 :: [*****] BUG: I = 0
Sun Nov 11 18:41:23 2007 :: [*****] BUG: Type = 253, Command = 86
Sun Nov 11 18:41:23 2007 :: [*****] BUG: J = 3
Sun Nov 11 18:41:23 2007 :: [*****] BUG: 0
Sun Nov 11 18:41:23 2007 :: [*****] BUG: I = 4
Sun Nov 11 18:41:23 2007 :: [*****] BUG: J = 4
Sun Nov 11 18:41:23 2007 :: [*****] BUG: m
Sun Nov 11 18:41:23 2007 :: [*****] BUG: I = 5
Sun Nov 11 18:41:23 2007 :: [*****] BUG: J = 5
Sun Nov 11 18:41:23 2007 :: [*****] BUG: u
Sun Nov 11 18:41:23 2007 :: [*****] BUG: I = 6
Sun Nov 11 18:41:23 2007 :: [*****] BUG: J = 6
Sun Nov 11 18:41:23 2007 :: [*****] BUG: s
Sun Nov 11 18:41:23 2007 :: [*****] BUG: I = 7
Sun Nov 11 18:41:23 2007 :: [*****] BUG: J = 7
Sun Nov 11 18:41:23 2007 :: [*****] BUG: h
Sun Nov 11 18:41:23 2007 :: [*****] BUG: I = 8
Sun Nov 11 18:41:23 2007 :: [*****] BUG: J = 8
Sun Nov 11 18:41:23 2007 :: [*****] BUG: c
Sun Nov 11 18:41:23 2007 :: [*****] BUG: I = 9
Sun Nov 11 18:41:23 2007 :: [*****] BUG: J = 9
Sun Nov 11 18:41:23 2007 :: [*****] BUG: l
Sun Nov 11 18:41:23 2007 :: [*****] BUG: I = 10
Sun Nov 11 18:41:23 2007 :: [*****] BUG: J = 10
Sun Nov 11 18:41:23 2007 :: [*****] BUG: i
Sun Nov 11 18:41:23 2007 :: [*****] BUG: I = 11
Sun Nov 11 18:41:23 2007 :: [*****] BUG: J = 11
Sun Nov 11 18:41:23 2007 :: [*****] BUG: e
Sun Nov 11 18:41:23 2007 :: [*****] BUG: I = 12
Sun Nov 11 18:41:23 2007 :: [*****] BUG: J = 12
Sun Nov 11 18:41:23 2007 :: [*****] BUG: n
Sun Nov 11 18:41:23 2007 :: [*****] BUG: I = 13
Sun Nov 11 18:41:23 2007 :: [*****] BUG: J = 13
Sun Nov 11 18:41:23 2007 :: [*****] BUG: t
Sun Nov 11 18:41:23 2007 :: [*****] BUG: I = 14
Sun Nov 11 18:41:23 2007 :: [*****] BUG: Type = SE
Sun Nov 11 18:41:23 2007 :: [*****] BUG: J = 16

It all boils down to MUSHclient responding with an affirmative to compression, but also sends either the client name or terminal type and terminates the IAC with SE. However, I'm pretty sure no negotiation (SB) should take place here. I'll go read the RFC again, but I think all MUSHclient should respond with is IAC DO COMPRESS2 then a NULL character.
Top

Posted by Nick Gammon   Australia  (23,133 posts)  Bio   Forum Administrator
Date Reply #1 on Mon 12 Nov 2007 03:49 AM (UTC)
Message
I can't reproduce this, perhaps you have sent the negotiation for terminal type earlier on?

You can test simply enough, first turn on Edit -> Debug Packets. That will then show in an editor window all incoming and outgoing packets.

Then go into "debug simulated world input" (Ctrl+Shift+F12) and enter:


\FF\FB\56


That is, IAC, WILL, COMPRESS2.

Then hit OK to send it.

Now look at your debug packets window. This is what I got:



Incoming packet: 5 (3 bytes)

ÿûV                ff fb 56

Sent  packet: 6 (3 bytes)

ÿýV                ff fd 56


You can see I sent IAC, WILL, COMPRESS2 and received IAC, DO, COMPRESS2.

It is not correct that you would expect a NULL character.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

Posted by ThomasWatts   USA  (66 posts)  Bio
Date Reply #2 on Mon 12 Nov 2007 09:20 PM (UTC)

Amended on Mon 12 Nov 2007 09:46 PM (UTC) by Nick Gammon

Message
Sorry, meant to say a terminated string
\0
.

I just ditched the multiple messages and sent a single message, the telnet clients I am testing with all support this properly and my server sends it correctly. I checked using the debug and MUSH said it was coming from my server, even though my code never specifically sent it. May be a problem with not flushing the output properly on server side.
Top

Posted by Nick Gammon   Australia  (23,133 posts)  Bio   Forum Administrator
Date Reply #3 on Mon 12 Nov 2007 09:47 PM (UTC)
Message
You will probably find the terminal type query hidden away where you don't expect it, for example in the "welcome" message.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
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.


12,611 views.

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

Go to topic:           Search the forum


[Go to top] top

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