-
Notifications
You must be signed in to change notification settings - Fork 229
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added Read and Write timeouts. #33
Conversation
Codecov Report
@@ Coverage Diff @@
## master #33 +/- ##
=========================================
- Coverage 64.11% 63.42% -0.7%
=========================================
Files 6 6
Lines 680 678 -2
=========================================
- Hits 436 430 -6
- Misses 182 184 +2
- Partials 62 64 +2
Continue to review full report at Codecov.
|
go.sum
Outdated
@@ -0,0 +1,2 @@ | |||
github.com/emersion/go-sasl v0.0.0-20161116183048-7e096a0a6197 h1:rDJPbyliyym8ZL/Wt71kdolp6yaD4fLIQz638E6JEt0= |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you remove this file? I should add it to .gitignore
example_test.go
Outdated
@@ -139,7 +139,8 @@ func ExampleNewServer() { | |||
|
|||
s.Addr = ":1025" | |||
s.Domain = "localhost" | |||
s.MaxIdleSeconds = 300 | |||
s.WriteTimeout = 300 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should probably use saner values here. Something like 10 * time.Second
.
README.md
Outdated
@@ -60,6 +60,7 @@ import ( | |||
"io" | |||
"io/ioutil" | |||
"log" | |||
"time" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Indentation is off here
example_test.go
Outdated
@@ -11,6 +11,7 @@ import ( | |||
"io/ioutil" | |||
"log" | |||
"strings" | |||
"time" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same
Thanks! |
Added timeouts for Read and Write.