sta / sta/websocket-sharp

Errors when running Rust Server and trying to connect with RustAdmin (a tool for running rust server_

Open
#276 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C#
Stars
6.1k
Forks
1.7k
PR merge metrics
No merged PRs in 30d

Description

I have another topic running on this issue here: http://oxidemod.org/threads/rustadmin-rcon-tool.5682/page-88#post-221630

When trying to connect with rust admin, I get this in the server console is this:

7/3/2016 1:16:56 PM|Fatal|<>c__DisplayClass6.b__5|WebSocketSharp.WebSocketException: An exception has occurred while reading an HTTP request/response. ---> System.IO.EndOfStreamException: The header cannot be read from the data source./200]
at WebSocketSharp.HttpBase+<>c__DisplayClass1.b__0 (Int32 i) [0x00000] in :0
at WebSocketSharp.Ext.EqualsWith (Int32 value, Char c, System.Action1 action) [0x00000] in <filename unknown>:0 at WebSocketSharp.HttpBase.readHeaders (System.IO.Stream stream, Int32 maxLength) [0x00000] in <filename unknown>:0 at WebSocketSharp.HttpBase.Read[HttpRequest] (System.IO.Stream stream, System.Func2 parser, Int32 millisecondsTimeout) [0x00000] in :0
--- End of inner exception stack trace ---
at WebSocketSharp.HttpBase.Read[HttpRequest](System.IO.Stream stream, System.Func`2 parser, Int32 millisecondsTimeout) [0x00000] in :0
at WebSocketSharp.HttpRequest.Read (System.IO.Stream stream, Int32 millisecondsTimeout) [0x00000] in :0
at WebSocketSharp.Net.WebSockets.TcpListenerWebSocketContext..ctor (System.Net.Sockets.TcpClient tcpClient, System.String protocol, Boolean secure, WebSocketSharp.Net.ServerSslConfiguration sslConfig, WebSocketSharp.Logger logger) [0x00000] in :0
at WebSocketSharp.Ext.GetWebSocketContext (System.Net.Sockets.TcpClient tcpClient, System.String protocol, Boolean secure, WebSocketSharp.Net.ServerSslConfiguration sslConfig, WebSocketSharp.Logger logger) [0x00000] in :0
at WebSocketSharp.Server.WebSocketServer+<>c__DisplayClass6.b__5 (System.Object state) [0x00000] in :0

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with WebSocketSharp.Server.WebSocketServer and the HttpBase.readHeaders stack frames shown in the report. Reproduce the connection attempt from RustAdmin and compare the request handling with the external discussion linked in the issue. Done means identifying the cause of the EndOfStreamException and confirming that the affected connection no longer produces the fatal server error.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
networking
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.