Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
haoqu.ma
/
gotty
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 37dbf005
authored
Aug 17, 2015
by
Iwasaki Yudai
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #13 from widdma/patch-1
Only send EOF in writable sessions
2 parents
6ece5141
8e5a277b
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
app/app.go
app/app.go
View file @
37dbf00
...
@@ -177,7 +177,9 @@ func (app *App) generateHandler() func(w http.ResponseWriter, r *http.Request) {
...
@@ -177,7 +177,9 @@ func (app *App) generateHandler() func(w http.ResponseWriter, r *http.Request) {
go
func
()
{
go
func
()
{
<-
exit
<-
exit
if
app
.
PermitWrite
{
fio
.
Write
([]
byte
{
4
})
fio
.
Write
([]
byte
{
4
})
}
fio
.
Close
()
fio
.
Close
()
conn
.
Close
()
conn
.
Close
()
log
.
Printf
(
"Connection closed: %s"
,
r
.
RemoteAddr
)
log
.
Printf
(
"Connection closed: %s"
,
r
.
RemoteAddr
)
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment