Debian Codegraph @

debian/control

raw
1 Source: golang-github-inconshreveable-muxado
2 Standards-Version: 4.7.2
3 Maintainer: Debian Go Packaging Team <[email protected]>
4 Uploaders:
5 Tim Potter <[email protected]>,
6 Section: golang
7 Testsuite: autopkgtest-pkg-go
8 Priority: optional
9 Build-Depends:
10 debhelper-compat (= 13),
11 dh-golang,
12 golang-any,
13 Vcs-Browser: https://salsa.debian.org/go-team/packages/golang-github-inconshreveable-muxado
14 Vcs-Git: https://salsa.debian.org/go-team/packages/golang-github-inconshreveable-muxado.git
15 Homepage: https://github.com/inconshreveable/muxado
16 XS-Go-Import-Path: github.com/inconshreveable/muxado
17
18 Package: golang-github-inconshreveable-muxado-dev
19 Architecture: all
20 Multi-Arch: foreign
21 Depends:
22 ${misc:Depends},
23 ${shlibs:Depends},
24 Description: Stream multiplexing for Go
25 What is stream multiplexing?
26 .
27 Imagine you have a single stream (a bi-directional stream of bytes) like a TCP
28 connection. Stream multiplexing is a method for enabling the transmission of
29 multiple simultaneous streams over the one underlying transport stream.
30 .
31 What is muxado?
32 .
33 muxado is an implementation of a stream multiplexing library in Go that can be
34 layered on top of a net.Conn to multiplex that stream. muxado's protocol is not
35 currently documented explicitly, but it is very nearly an implementation of the
36 HTTP2 framing layer with all of the HTTP-specific bits removed. It is heavily
37 inspired by HTTP2, SPDY, and WebMUX.
38 .
39 How does it work?
40 .
41 Simplifying, muxado chunks data sent over each multiplexed stream and transmits
42 each piece as a "frame" over the transport stream. It then sends these frames,
43 often interleaving data for multiple streams, to the remote side. The remote
44 endpoint then reassembles the frames into distinct streams of data which are
45 presented to the application layer.
46 .
47 What good is it anyways?
48 .
49 A stream multiplexing library is a powerful tool for an application developer's
50 toolbox which solves a number of problems:
51 .
52 - It allows developers to implement asynchronous/pipelined protocols with
53 ease. Instead of matching requests with responses in your protocols, just
54 open a new stream for each request and communicate over that.
55 - muxado can do application-level keep-alives and dead-session detection so
56 that you don't have to write heartbeat code ever again.
57 - You never need to build connection pools for services running your
58 protocol. You can open as many independent, concurrent streams as you need
59 without incurring any round-trip latency costs.
60 - muxado allows the server to initiate new streams to clients which is
61 normally very difficult without NAT-busting trickery.
62 .
63 This package contains the source.