This repository was archived by the owner on Jul 21, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 155
Fix issue where GCM pushkins behind proxy fail to start #408
Merged
Merged
Changes from all commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
c911fc9
Fix issue where GCM pushkins behind proxy fail to start
devonh e595785
Add changelog entry
devonh ad4088d
Change tactic so we don't break APNS pushkins
devonh ddbe84b
Changeup asyncio event loop usage
devonh b44fe15
Cleanup asyncio event loop pushkin usage
devonh 881d1b3
Make it easier to test multiple pushkins in proxy test
devonh 3299ee5
Move things back in place
devonh 83f3434
Cleanup
devonh d65a169
Cleanup asyncio proxy tests
devonh 0f320fb
Add test comments
devonh 9f1f90a
Reset loop creation
devonh bbde27d
Update sygnal/sygnal.py
devonh e58a6da
Remove make_apns function
devonh 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 hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| Fix issue where GCM pushkins behind proxy fail to start. |
This file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1 +1,6 @@ | ||
| curl -i -H "Content-Type: application/json" --request POST -d @notification.json http://localhost:5000/_matrix/push/v1/notify | ||
| if [ "$#" -ne 1 ]; then | ||
| echo "Usage: $0 <notification_file>" | ||
| exit 1 | ||
| fi | ||
|
|
||
| curl -i -H "Content-Type: application/json" --request POST -d @$1 http://localhost:5000/_matrix/push/v1/notify |
This file contains hidden or 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 hidden or 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 hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,31 @@ | ||
| { | ||
| "notification": { | ||
| "event_id": "\\$3957tyerfgewrf384", | ||
| "room_id": "!slw48wfj34rtnrf:example.org", | ||
| "type": "m.room.message", | ||
| "sender": "@exampleuser:example.org", | ||
| "sender_display_name": "Major Tom", | ||
| "room_name": "Mission Control", | ||
| "room_alias": "#exampleroom:example.org", | ||
| "prio": "high", | ||
| "content": { | ||
| "msgtype": "m.text", | ||
| "body": "I'm floating in a most peculiar way." | ||
| }, | ||
| "counts": { | ||
| "unread": 2, | ||
| "missed_calls": 1 | ||
| }, | ||
| "devices": [ | ||
| { | ||
| "app_id": "im.vector.app.ios", | ||
| "pushkey": "aaaa", | ||
| "pushkey_ts": 12345678, | ||
| "data": {}, | ||
| "tweaks": { | ||
| "sound": "bing" | ||
| } | ||
| } | ||
| ] | ||
| } | ||
| } |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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
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.
Uh oh!
There was an error while loading. Please reload this page.