-
-
Notifications
You must be signed in to change notification settings - Fork 706
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
Allow apps using the bridge to respond to powerbox requests & offers #3222
Commits on Feb 22, 2020
-
Bridge: specify methods for info re: powerbox requests/offers.
The next few commits will flesh out relevant documentation to mention the header described in the comments, and describe how to use these methods. All this will serve as a more precise spec for what to implement.
Configuration menu - View commit details
-
Copy full SHA for 5411aba - Browse repository at this point
Copy the full SHA 5411abaView commit details -
Update docs to describe using non-http apis via the bridge.
Still need to talk about offer sessions.
Configuration menu - View commit details
-
Copy full SHA for e234257 - Browse repository at this point
Copy the full SHA e234257View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9b11ed8 - Browse repository at this point
Copy the full SHA 9b11ed8View commit details -
Include X-Sandstorm-Session-Type: normal in existing sessions.
Not tested (though it doesn't break the existing tests).
Configuration menu - View commit details
-
Copy full SHA for 786e958 - Browse repository at this point
Copy the full SHA 786e958View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9f76633 - Browse repository at this point
Copy the full SHA 9f76633View commit details -
BridgeContext: make the sessions map private.
We're going to start tweaking this to support offer & request sessions, so now is a good time to do this cleanup.
Configuration menu - View commit details
-
Copy full SHA for f4fee3d - Browse repository at this point
Copy the full SHA f4fee3dView commit details -
First pass at handling get{Request,Offer}Session.
This needs further testing, but is now feature complete wrt. sandstorm-io#3197
Configuration menu - View commit details
-
Copy full SHA for 9cde256 - Browse repository at this point
Copy the full SHA 9cde256View commit details -
Configuration menu - View commit details
-
Copy full SHA for 37e787e - Browse repository at this point
Copy the full SHA 37e787eView commit details -
Tweak the way we allocate the results for getSessionOffer/Request.
It now doesn't crash until those methods are called, rather than on creation. I'm going to put this down for a bit and come back when I have the mental energy to sit down and understand what's going on.
Configuration menu - View commit details
-
Copy full SHA for b6000e8 - Browse repository at this point
Copy the full SHA b6000e8View commit details -
Configuration menu - View commit details
-
Copy full SHA for ad25e75 - Browse repository at this point
Copy the full SHA ad25e75View commit details -
Apparently I messed this up when factoring out the logic.
Configuration menu - View commit details
-
Copy full SHA for 0cec873 - Browse repository at this point
Copy the full SHA 0cec873View commit details -
Use kj::str in a couple new places.
...mostly in place of kj::mv. At least one of these was responsible for some memory corruption I was seeing. Some of the copies this introduces *may* be unnecessary, but it's probably better to have the copy in there than the unsafe cast, until it is demonstrably a problem.
Configuration menu - View commit details
-
Copy full SHA for d6ce8c4 - Browse repository at this point
Copy the full SHA d6ce8c4View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2af079e - Browse repository at this point
Copy the full SHA 2af079eView commit details -
Fix some broken logic re: ownership of map keys.
See the comments for the current state of affairs. The code I'd written previously didn't have any coherent story here, and was *sometimes* working I think just because of luck wrt. what memory gets re-used by the allocator or doesn't. This needs more testing, but experimenting with my filesystem demo, grains, it gets further than anything before it.
Configuration menu - View commit details
-
Copy full SHA for 47524a5 - Browse repository at this point
Copy the full SHA 47524a5View commit details -
Configuration menu - View commit details
-
Copy full SHA for 719e6f9 - Browse repository at this point
Copy the full SHA 719e6f9View commit details -
Configuration menu - View commit details
-
Copy full SHA for 383963d - Browse repository at this point
Copy the full SHA 383963dView commit details -
bridge: use one map for session info
...instead of three, per @kentonv's suggestion.
Configuration menu - View commit details
-
Copy full SHA for d99cfa1 - Browse repository at this point
Copy the full SHA d99cfa1View commit details -
Get rid of redundant kj::Own reference.
Readers are already reference types, so let's just store that directly.
Configuration menu - View commit details
-
Copy full SHA for 66c7d7a - Browse repository at this point
Copy the full SHA 66c7d7aView commit details