-
Notifications
You must be signed in to change notification settings - Fork 450
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
Optionally close connections when inactive #116
Merged
Merged
Changes from all commits
Commits
Show all changes
29 commits
Select commit
Hold shift + click to select a range
ef6763d
Added a `closeAfterInactivityTime` option to channel config objects. …
0fef77c
Added a handler that will close connections if they're idle for a pre…
54d57a2
Removed a spurious block in a test.
44356fa
Added `gracefulShutdownTimeout` to `ApnsConnectionConfiguration`.
b0a027c
Added support for shutting down immediately if a graceful shutdown at…
e7576fa
Added a test for graceful shutdown timeouts.
6b39dde
Trigger a write failure if we know the connection is shutting down.
jchambers 8a67836
Added a send attempt limit option to ApnsConnectionConfiguration.
jchambers d08ad7a
Merge branch 'close_connections_when_inactive' of github.com:relayrid…
jchambers d10f979
Added shut-down-after-send-attempt-limit functionality and tests.
jchambers 343c894
Merge branch 'master' of github.com:relayrides/pushy into close_conne…
jchambers 263aca7
Merge branch 'close_connections_when_inactive' of github.com:relayrid…
jchambers 7814c0f
Fixed a copy constructor goof and updated tests accordingly.
67e1123
Added a clarifying comment.
8667e84
Merge branch 'close_connections_when_inactive' of github.com:relayrid…
e3507ae
Fixed more copy constructor mistakes and added some clarifying commen…
dea9b7d
Merge branch 'close_connections_when_inactive' of github.com:relayrid…
b3b6e31
Fixed a spelling error.
2b4848d
Added an explicit check for null configurations in the ApnsConnection…
f5ab059
Let us never speak of this again.
10ede21
Reworded docs for clarity.
1d6e774
Merge branch 'close_connections_when_inactive' of github.com:relayrid…
8d06356
Added still more clarifying comments.
2febe14
Merge pull request #117 from relayrides/graceful_shutdown_timeout
jchambers e85b249
Merge branch 'close_connections_when_inactive' of github.com:relayrid…
524b9ec
Updated copy constructor, hashCode, equals, and tests for ApnsConnect…
2f64f36
Restored some accidentally removed `final` modifiers.
5cf6ce1
Merge pull request #118 from relayrides/close_after_send_attempt_limit
jchambers afd937a
Merge branch 'master' of github.com:relayrides/pushy into close_conne…
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
configuration
be null as well? If so, an extra null check for that as well would be great.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.
No, but I made that clearer in 2b4848d.
There's already a test to make sure constructing a connection fails with a
NullPointerException
, but that was happening by way of making an unchecked read to the given configuration object (we would try to blindly read the sent notification buffer size) rather than checking for null configurations directly.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.
Oops -- f5ab059, too.