Giter Club home page Giter Club logo

racket-websocket-windows's Introduction

Instructions

These files illustrate an issue with web sockets in Racket using net/rfc6455. The issue is only encountered when the server is run from Windows cmd or PowerShell, rather than (e.g.) DrRacket.

This repo was produced using Racket 8.10, but we also have reports of it happening on other 8.X versions.

Steps to reproduce (bad behavior)

  • Run racket websocket-server.rkt from cmd or PowerShell.
  • Run racket websocket-client.rkt from anywhere.

The connection will be refused. After a few seconds, an error will print:

$ racket websocket-client.rkt
tcp-connect: connection failed
  hostname: localhost
  port number: 8081
  system error: No connection could be made because the target machine actively refused it.; win_err=10061

Steps to reproduce (good behavior)

  • Run racket websocket-server.rkt from drracket, git bash, or wsl.
  • Run racket websocket-client.rkt from anywhere.

The connection will be accepted, and the client will print "Hello world!". The server will show an error since the client disconnected ungracefully.

racket-websocket-windows's People

Contributors

tnelson avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.