Giter Site home page Giter Site logo

2017-joyent-hackathon's Introduction

Hackathon

A quick hackathon project (3hrs) to demonstrate the value of QUIC.

  • quicc, a QUIC client. Connects to a QUIC server, fetches a URL, and discards the output. Useful for benchmarking.
  • quicd, a QUIC server. Connects to a backend HTTP server and proxies the result via QUIC. Useful for exposing an existing HTTP(S) service.

quicd Usage

Configure quicd to proxy connections to an IP address serving www.google.com:

$ cd quicd
$ go build
$ make ssl-keys
$ ./quicd -upstream "http://www.google.com:80" -cert quicd.pem -key quicd.key -circonus-api-key noop
# or
$ ./quicd -upstream "https://www.google.com:443" -cert quicd.pem -key quicd.key -circonus-api-key noop

quicc Usage

$ cd quicc
$ go build
$ ./quicc https://127.0.0.1:8443/
2017-11-21T08:59:58-08:00 |INFO| GET request addr=https://127.0.0.1:8443/
2017-11-21T08:59:58-08:00 |INFO| GET Response addr=https://127.0.0.1:8443/ rsp="200 OK"
$ ./quicc https://www.google.com:443/
2017-11-21T09:00:19-08:00 |INFO| GET request addr=https://www.google.com:443/
2017-11-21T09:00:19-08:00 |INFO| GET Response addr=https://www.google.com:443/ rsp="200 OK"
$ ./quicc https://www.amazon.com:443/
2017-11-21T09:01:00-08:00 |INFO| GET request addr=https://www.amazon.com:443/
panic: Get https://www.amazon.com:443/: read udp [::]:36103: use of closed network connection

goroutine 5 [running]:
	main.main.func1(0xc42007d0e0, 0xc420016770, 0x7fffffffe7e8, 0x1b) /home/seanc/go/src/github.com/sean-/2017-joyent-hackathon/quicc/main.go:50 +0x1af
reated by main.main
	/home/seanc/go/src/github.com/sean-/2017-joyent-hackathon/quicc/main.go:47 +0x2a5
Exit 2

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.