Skip to content

Commit

Permalink
Merge pull request #148 from lightninglabs/multi-fix
Browse files Browse the repository at this point in the history
multi: update pool, fix docs, fix timeout issue
  • Loading branch information
guggero authored Nov 16, 2020
2 parents 883c560 + 5c6b893 commit fe60eb4
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 6 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,13 +66,15 @@ Lightning Terminal is backwards compatible with `lnd` back to version v0.11.1-be

| LiT | LND |
| ---------------- | ------------ |
| **v0.3.1-alpha** | v0.11.1-beta |
| **v0.3.0-alpha** | v0.11.1-beta |
| **v0.2.0-alpha** | v0.11.0-beta |

## Daemon Versions packaged with LiT

| LiT | LND | Loop | Faraday | Pool |
| ---------------- | ------------ | ----------- | ------------ |---------------|
| **v0.3.1-alpha** | v0.11.1-beta | v0.11.1-beta | v0.2.2-alpha | v0.3.3-alpha |
| **v0.3.0-alpha** | v0.11.1-beta | v0.11.0-beta | v0.2.2-alpha | v0.3.2-alpha |
| **v0.2.0-alpha** | v0.11.1-beta | v0.10.0-beta | v0.2.1-alpha | n/a |
| **v0.1.1-alpha** | v0.11.0-beta | v0.8.1-beta | v0.2.0-alpha | n/a |
Expand Down
4 changes: 4 additions & 0 deletions doc/config-lnd-integrated.md
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,10 @@ For `lnd`:
After:

```text
# New flag to tell LiT to run its own lnd in integrated mode. We need to set
# this because "remote" is the new default value if we don't specify anything.
lnd-mode=integrated
# Application Options
lnd.alias=merchant
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ require (
github.com/lightninglabs/faraday v0.2.2-alpha
github.com/lightninglabs/lndclient v0.11.0-3
github.com/lightninglabs/loop v0.11.1-beta
github.com/lightninglabs/pool v0.3.2-alpha
github.com/lightninglabs/pool v0.3.3-alpha
github.com/lightningnetwork/lnd v0.11.1-beta
github.com/lightningnetwork/lnd/cert v1.0.3
github.com/mwitkow/go-conntrack v0.0.0-20190716064945-2f068394615f
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -235,8 +235,8 @@ github.com/lightninglabs/loop v0.11.1-beta/go.mod h1:xZfGG0AbxwAoarGGLeEl8TEzGm/
github.com/lightninglabs/neutrino v0.11.0/go.mod h1:CuhF0iuzg9Sp2HO6ZgXgayviFTn1QHdSTJlMncK80wg=
github.com/lightninglabs/neutrino v0.11.1-0.20200316235139-bffc52e8f200 h1:j4iZ1XlUAPQmW6oSzMcJGILYsRHNs+4O3Gk+2Ms5Dww=
github.com/lightninglabs/neutrino v0.11.1-0.20200316235139-bffc52e8f200/go.mod h1:MlZmoKa7CJP3eR1s5yB7Rm5aSyadpKkxqAwLQmog7N0=
github.com/lightninglabs/pool v0.3.2-alpha h1:5wIXMBAPqxf7vQSRG/PUfrg47kfRssRGsBW+586Uk1k=
github.com/lightninglabs/pool v0.3.2-alpha/go.mod h1:a955Z6GMXMUZWWbm0ytzVWKxU2uighi1h8PZrjFwmhI=
github.com/lightninglabs/pool v0.3.3-alpha h1:WqCw+9jU6atIxlzau6r08xmiJB9CcWrwdpIgU+1/Zh8=
github.com/lightninglabs/pool v0.3.3-alpha/go.mod h1:a955Z6GMXMUZWWbm0ytzVWKxU2uighi1h8PZrjFwmhI=
github.com/lightninglabs/protobuf-hex-display v1.3.3-0.20191212020323-b444784ce75d h1:QWD/5MPnaZfUVP7P8wLa4M8Td2DI7XXHXt2vhVtUgGI=
github.com/lightninglabs/protobuf-hex-display v1.3.3-0.20191212020323-b444784ce75d/go.mod h1:KDb67YMzoh4eudnzClmvs2FbiLG9vxISmLApUkCa4uI=
github.com/lightningnetwork/lightning-onion v1.0.2-0.20200501022730-3c8c8d0b89ea h1:oCj48NQ8u7Vz+MmzHqt0db6mxcFZo3Ho7M5gCJauY/k=
Expand Down
17 changes: 14 additions & 3 deletions terminal.go
Original file line number Diff line number Diff line change
Expand Up @@ -555,9 +555,20 @@ func (g *LightningTerminal) startMainWebServer() error {
// Create and start our HTTPS server now that will handle both gRPC web
// and static file requests.
g.httpServer = &http.Server{
WriteTimeout: defaultServerTimeout,
ReadTimeout: defaultServerTimeout,
Handler: http.HandlerFunc(httpHandler),
// To make sure that long-running calls and indefinitely opened
// streaming connections aren't terminated by the internal
// proxy, we need to disable all timeouts except the one for
// reading the HTTP headers. That timeout shouldn't be removed
// as we would otherwise be prone to the slowloris attack where
// an attacker takes too long to send the headers and uses up
// connections that way. Once the headers are read, we either
// know it's a static resource and can deliver that very cheaply
// or check the authentication for other calls.
WriteTimeout: 0,
IdleTimeout: 0,
ReadTimeout: 0,
ReadHeaderTimeout: defaultServerTimeout,
Handler: http.HandlerFunc(httpHandler),
}
httpListener, err := net.Listen("tcp", g.cfg.HTTPSListen)
if err != nil {
Expand Down

0 comments on commit fe60eb4

Please sign in to comment.