-
Notifications
You must be signed in to change notification settings - Fork 0
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
Moving ahead for finalizing working Session Handlers #15
Conversation
updated websocket specs and refactored code
@@ -5,6 +5,7 @@ | |||
|
|||
module Reel | |||
module Session | |||
extend Celluloid |
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.
o_O does that... work? @digitalextremist
end | ||
@options | ||
end | ||
|
||
# initializing session | ||
def initialize_session | ||
@bag = Store.new self |
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.
with the include Celluloid
in store.rb below, this will cause a new actor/thread per request
if i understand correctly, what you are trying to do here is have timers that "expire" the data from the hash store. you're trying to use the unfortunately, as noted above, this makes each instance of the Store class an actor with its own thread. that's way too heavy per request. one solution might be to create a single instance of a StoreExpiry class (that includes Celluloid) and register expiration there... but why use another thread, when there's perfectly good reactor sitting around in the form of the reel server? see the PR i just opened to get access to the server from inside requests. celluloid#228 |
Yes that would be heavy creating thread per request. Will be calling |
Improving/adding test (need updation wrt Session configuration logic)
Small tweaks/ Corrected and improved Specs
Improved/new configuration,crypto,specs
Updated/improved deleting_timer,configuration,crypto and specs
overriding server constructor to get session config value during intialization
Added few basic Session examples and removed Crypto code (performance issue)
Merging 😃 |
Includes all recent changes i.e. -
Deleting Timers
using Celluloid#Timers=> which deletes value from outer hash automatically after expiryConfiguration
logic and its usageParser
to solve failingpipelined request
test inconnection_spec
Kindly Review 😃 /cc: @kenichi @digitalextremist