Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

A Cowboy Websocket demo

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 competition
Octocat-spinner-32 etc
Octocat-spinner-32 results
Octocat-spinner-32 src
Octocat-spinner-32 .gitignore
Octocat-spinner-32 LICENSE Added a basic README and LICENSE May 25, 2012
Octocat-spinner-32 README.md
Octocat-spinner-32 configure_ubuntu.sh
Octocat-spinner-32 rebar Initial commit May 25, 2012
Octocat-spinner-32 rebar.config
Octocat-spinner-32 request.txt
Octocat-spinner-32 results.md
Octocat-spinner-32 runtest
README.md

wsdemo

A Cowboy Websocket demo

This demo is intended to follow along with the Million-user Comet Application

Demo

Compile:

./rebar get-deps compile

Follow the "Tuning the Linux Kernel for many tcp connections" instructions in Part One of the Million-user Comet Application to increase your available connection counts.

Start the server:

  sudo bash
  ulimit -n 999999
  erl -pa ebin deps/*/ebin
  1> wsdemo:start(8000).

Start floodtest:

  sudo bash
  ulimit -n 999999
  erl -pa ebin 
  1> wsdemo_stats:start("localhost", 8000, 10000).

You will see the stats printed out as with the part one of C1M Comet demo.

Something went wrong with that request. Please try again.