Running WebSocket Sharp in Windows Services

Open
#56 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

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

Research direction

No source file or test is named. Start by reproducing the difference between console and Windows Service execution, then trace the logged WebSocket.Send, receiveHandshakeResponse, close, and closeHandshake flow. Done means identifying why the connection closes after the successful handshake and documenting a verified resolution.

Written by the indexing model from the issue text.

Description

Hi there,
I've created a application using web socket sharp. This works fine when running as a console app, however when deployed as a windows service (As Admin) it fails on send. Debugging info below.
Any ideas why this is would be most welcomed.
Many thanks
Darryl

4/07/2014 3:14:46 p.m.|Debug|WebSocket.send:0|A WebSocket connection request to wss://url:443/websocket/v2:
GET /websocket/v2 HTTP/1.1
User-Agent: websocket-sharp/1.0
Upgrade: websocket
Connection: Upgrade
Host: url:443
Sec-WebSocket-Key: pFtLpPPxJ5WBJ/G8BR5A+Q==
Sec-WebSocket-Protocol: wss
Sec-WebSocket-Version: 13
4/07/2014 3:14:46 p.m.|Debug|WebSocket.receiveHandshakeResponse:0|A response to this WebSocket connection request:
HTTP/1.1 101 Switching Protocols
Upgrade: WebSocket
Connection: Upgrade
Sec-WebSocket-Accept: kOyOtZ3xHDrgox+kybKdkG3wMZA=
Sec-WebSocket-Protocol: wss
4/07/2014 3:14:46 p.m.|Error|WebSocket.Send:0|While closing the WebSocket connection.
4/07/2014 3:14:46 p.m.|Info |WebSocket.close:0|Closing the WebSocket connection has already been done.
4/07/2014 3:14:46 p.m.|Debug|WebSocket.closeHandshake:0|Was clean?: True
sent: True received: True

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

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.

More from sta/websocket-sharp

All issues in sta/websocket-sharp

Similar issues

More C# issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.