Skip to content
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

Merged
merged 11 commits into from
Mar 31, 2019
Merged

Conversation

chaoticryptidz
Copy link

Added timeouts for Read and Write.

@codecov
Copy link

codecov bot commented Mar 31, 2019

Codecov Report

Merging #33 into master will decrease coverage by 0.69%.
The diff coverage is 16.66%.

Impacted file tree graph

@@            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
Impacted Files Coverage Δ
server.go 54.11% <ø> (ø) ⬆️
conn.go 62.82% <16.66%> (-1.56%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 5381b0b...d7a495c. Read the comment docs.

go.sum Outdated
@@ -0,0 +1,2 @@
github.com/emersion/go-sasl v0.0.0-20161116183048-7e096a0a6197 h1:rDJPbyliyym8ZL/Wt71kdolp6yaD4fLIQz638E6JEt0=
Copy link
Owner

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
Copy link
Owner

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"
Copy link
Owner

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"
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same

@emersion emersion merged commit 6c24079 into emersion:master Mar 31, 2019
@emersion
Copy link
Owner

Thanks!

@foxcpp foxcpp mentioned this pull request Apr 2, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants