• Guest, we are doing a new map (refresh) for Herocraft. Gather your friends and get ready! Coming next Friday, 06/28/24 @ 7PM CT play.hc.to
    Read up on the guides and new systems! Here.
    View the LIVE Map here @ hc.to/map
    Stuck or have a problem? use "/pe create" to to open a ticket with staff (There are some known issues and other hotfixes we will be pushing asap)
  • Guest, Make sure to use our LAUNCHER! Read more here!

Bug Chat disconnect w/o error msg on Spout 1368 - txt is too long. Detailed technical info.

Morningstar42

Glowing Redstone
Joined
Mar 29, 2012
This seems to maybe be a persistance of an earlier bug that is believed to have been fixed.

I'm on Spout 1368 (dunno if that matters for the bug) and it is disconnecting me if I type something into chat that is longer than ~110 characters. Different behavoirs happen depending on the length. The errors it throws are:

Internal exception: java.net.SocketException: Software caused connection abort:recv failed
(after submitting 130, 140 char chat msgs)

Internal exception: java.net.SocketException: Software caused connection abort: socket write error
(after submitting 120 char chat msg)

Disconnected by Server
(115 chars, 113 chars, 112 chars)
This one happens IMMEDIATELY and doesn't take 5-10 seconds to happen like the other errors

110 chars seems to work fine. This is in Local chat with no commands or switches submitted to the chat form. The failures and errors seem somewhat repeatable, in that I tested 120-140 and got the lag before dc'ing, tried 110-115 with their various results, then tried 140 again and still got lag before being dropped.

After submitting the chat message, some data seems to come through for a while afterwards (incoming chat and other events). It seems the chat data/packet is maybe found to be problematic between the client/server and eventually, but not immediately, kicks the user. There must be some mechanism that checks/relies on server/client confirmation of data transmitted, and eventually one of those times-out and drops the client connection from the server.
 

Morningstar42

Glowing Redstone
Joined
Mar 29, 2012
I think that would be a separate issue. I tested this about 12 times in a row and got disconnected every time. It also happened several times earlier in the day and that's how I noticed the pattern that it had to do with long chat msgs.

Quick fix: Cap chat string length... not sure if that would be in Minecraft, Heroes or Spout. Is there supposed to be a limit to chat messages? I thought there was before, it would just stop typing... but now I can type any length I want.
 

Morningstar42

Glowing Redstone
Joined
Mar 29, 2012
I forgot to mention... the long message I type in never shows up in chat at all. So that data is never relayed back to the client, which seems to be indicated in the error messages.
 
Top