Skip to content

Commit

Permalink
removed braintree/manners
Browse files Browse the repository at this point in the history
  • Loading branch information
Vijayee Kulkaa committed May 18, 2015
1 parent ad9d84d commit 6c213c6
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 11 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,4 @@

/test/bin
.ipfs
.idea/
5 changes: 0 additions & 5 deletions Godeps/Godeps.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 3 additions & 6 deletions core/corehttp/corehttp.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import (
"net/http"
"time"

manners "github.com/ipfs/go-ipfs/Godeps/_workspace/src/github.com/braintree/manners"
ma "github.com/ipfs/go-ipfs/Godeps/_workspace/src/github.com/jbenet/go-multiaddr"
manet "github.com/ipfs/go-ipfs/Godeps/_workspace/src/github.com/jbenet/go-multiaddr-net"
core "github.com/ipfs/go-ipfs/core"
Expand Down Expand Up @@ -62,7 +61,7 @@ func listenAndServe(node *core.IpfsNode, addr ma.Multiaddr, handler http.Handler
return err
}

server := manners.NewServer()
server := &http.Server{Addr: host, Handler: handler}

// if the server exits beforehand
var serverError error
Expand All @@ -72,7 +71,7 @@ func listenAndServe(node *core.IpfsNode, addr ma.Multiaddr, handler http.Handler
defer node.Children().Done()

go func() {
serverError = server.ListenAndServe(host, handler)
serverError = server.ListenAndServe()
close(serverExited)
}()

Expand All @@ -85,9 +84,7 @@ func listenAndServe(node *core.IpfsNode, addr ma.Multiaddr, handler http.Handler
log.Infof("server at %s terminating...", addr)

// make sure keep-alive connections do not keep the server running
server.InnerServer.SetKeepAlivesEnabled(false)

server.Shutdown <- true
server.SetKeepAlivesEnabled(false)

outer:
for {
Expand Down

0 comments on commit 6c213c6

Please sign in to comment.