Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
dms3
go-dms3
Commits
fcb8be56
Commit
fcb8be56
authored
May 18, 2015
by
Vijayee Kulkaa
Committed by
vijayee
May 18, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
removed braintree/manners
parent
ad9d84d5
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
12 deletions
+4
-12
.gitignore
.gitignore
+1
-1
Godeps/Godeps.json
Godeps/Godeps.json
+0
-5
core/corehttp/corehttp.go
core/corehttp/corehttp.go
+3
-6
No files found.
.gitignore
View file @
fcb8be56
...
...
@@ -10,4 +10,4 @@
*~
/test/bin
.ipfs
.ipfs
\ No newline at end of file
Godeps/Godeps.json
View file @
fcb8be56
...
...
@@ -28,11 +28,6 @@
"Comment"
:
"v0.7.3-2-g26709e2"
,
"Rev"
:
"26709e2714106fb8ad40b773b711ebce25b78914"
},
{
"ImportPath"
:
"github.com/braintree/manners"
,
"Comment"
:
"0.3.1-2-g5280e25"
,
"Rev"
:
"5280e250f2795914acbeb2bf3b55dd5a2d1fba52"
},
{
"ImportPath"
:
"github.com/bren2010/proquint"
,
"Rev"
:
"5958552242606512f714d2e93513b380f43f9991"
...
...
core/corehttp/corehttp.go
View file @
fcb8be56
...
...
@@ -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"
...
...
@@ -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
...
...
@@ -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
)
}()
...
...
@@ -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
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment