Commit Graph

151 Commits

Author SHA1 Message Date
Michael Xavier
dfe9cbc364 Default to current LTS for development 2018-01-15 14:02:04 -08:00
Michael Xavier
34446681fe Try caching stack work dir 2018-01-15 14:01:48 -08:00
Michael Xavier
b262a18ae4 Loosen hedis bounds
This is for #14
2018-01-15 13:46:16 -08:00
Michael Xavier
72c555d170 Bump to serversession-backend-persistent 1.0.4 2017-05-17 18:29:48 -07:00
Michael Xavier
d174f05868 Merge pull request #12 from sbditto85/auth_id_default
auth id set to default of null to prevent yet another mysql error
2017-04-28 19:26:08 -07:00
Casey Allred
2300580717 auth id set to default of null to prevent yet another mysql error 2017-04-28 15:14:47 -06:00
Michael Xavier
78fd564eec Update package maintainer
I don't see a way to set multiple maintainers on the project. I don't
have a roadmap or vested interest in all of these packages but for the
time being I'm the active maintainer of these projects.
2017-03-08 09:29:59 -08:00
Michael Xavier
4ddceac6de serversession-frontend-snap 1.0.1 2017-03-03 15:47:33 -08:00
Michael Xavier
854a5a3d1f serversession-backend-redis 1.0.2 2017-03-03 15:46:14 -08:00
Michael Xavier
1ac6f2726b serversession-backend-persistent 1.0.3 2017-03-03 15:43:38 -08:00
Michael Xavier
f73de7c791 Add blank changelogs for all projects
For future releases we'll update these. I have a few packages that
need releases so that'll be the start.
2017-03-03 15:41:27 -08:00
Michael Xavier
4398cea6b4 Work around lts-7/ghc-8.0.1 panic 2017-03-03 08:57:00 -08:00
Michael Xavier
9615bb3996 Run against lts-8
Also great, we get a ghc panic in lts-7. thats neat.
2017-03-02 17:41:09 -08:00
Michael Xavier
4f0deb94f6 Fix errors in sdist for example project 2017-03-02 15:29:49 -08:00
Michael Xavier
2a369c6949 Fix type aliasing issue on some ltses 2017-03-02 14:35:11 -08:00
Michael Xavier
164761bfc3 Install libgmp prereq 2017-03-02 14:35:03 -08:00
Michael Xavier
3cfe27857d Move flag into lts-2 stack yaml 2017-03-02 14:34:56 -08:00
Michael Xavier
a5114cb505 Rework travis build
Perhaps supporting lts 2-8 is not the best idea.
2017-03-02 14:21:42 -08:00
Michael Xavier
399463f8c5 Get building on nightly with ghc 8 2017-02-08 18:34:51 -08:00
Michael Xavier
6edd459223 Wall-werror all the things 2017-02-01 18:20:55 -08:00
Michael Xavier
66bdc481bc Ignore .stack-work 2017-01-31 20:02:32 -08:00
Michael Xavier
f51ce82a3c Merge pull request #11 from sbditto85/limit_session_key
limit the session key as per the the definition comment 'The ID of a …
2017-01-31 19:32:20 -08:00
Casey Allred
be6d9d2aaf Merge branch 'master' into limit_session_key 2017-01-30 16:31:22 -07:00
Michael Xavier
5e80d43db5 Merge pull request #8 from MichaelXavier/redis-session-expiry
Add first stab at backend auto expiry
2017-01-25 19:28:16 -08:00
Michael Xavier
70d1c43e09 I think we have to use system-ghc explicitly now? 2017-01-25 18:15:40 -08:00
Michael Xavier
adda409f90 Merge remote-tracking branch 'upstream/master' into redis-session-expiry 2017-01-25 17:46:29 -08:00
Casey Allred
37590b9e3e limit the session key as per the the definition comment 'The ID of a session. Always 18 bytes base64url-encoded as 24 characters.' using 30 characters to be conservative 2017-01-23 21:33:02 +00:00
Michael Xavier
b51d32df4d widen deps 2016-11-28 09:30:29 -08:00
Michael Snoyman
c2c1718f11 Merge pull request #9 from k-bx/patch-1
Bump hedis
2016-09-22 16:17:23 +03:00
Kostiantyn Rybnikov
3f5b0da2f1 Re-bump hedis 2016-09-22 14:01:10 +03:00
Kostiantyn Rybnikov
7bce4c18e7 Bump hedis
Useful for https://github.com/fpco/stackage/issues/1247
2016-03-24 17:28:34 +02:00
Michael Xavier
d135958be5 Update comments, exercise expiration codepath
I wanted to at least ensure my change's code was excerised, even though
it makes no material difference to the allStorageTests suite.
2016-03-12 13:11:43 -08:00
Michael Xavier
7d922d1de4 Add first stab at backend auto expiry
This is for issue #7

So it would be nice if we had access to `State` because it would provide
us with `cookieExpires`, but nothing in the machinery of serversession
makes it available to backends for some reason. Also the tests seem to
indicate that the State may not be available at the time of setting up
storange engines (or may be a chicken-and-egg situation). The best
solution seemed to be to take the settings for absolute and idle timeout
that you're going to give to the state and share them.

Just as a reminder for the motivation on this: currently in
serversession's redis backend, you accumulate sessions
indefinitely. Even after they expire, they will stay in redis. The other
backends seem vulnerable to this too but its probably not nearly a big
deal in something like persistent because:

1. Storage is not as much of a premium in peristent's supported backend
compared to redis. They are primarily storing to disk.
2. Persistent's backends have good querying primitives so it is simple
to write jobs to delete old sessions.

Redis must fit all data in memory, so storage is at a premium and in
order to find old keys you'd have to issue the frowned-upon KEYS
command (or SCAN which isn't even suppored by hedis yet) and parse every
session.

This change uses redis' built in expiry mechanism and sets the
expiration every time a write operation is made to a session. Sessions
as they would naturally expire on the client side will now automatically
expire and free memory on the backend.
2016-03-11 16:54:14 -08:00
Felipe Lessa
cc69e23dc9 serversession-backend-redis-1.0.1 2015-12-31 15:45:45 -02:00
Felipe Lessa
c334f3bd07 serversession-backend-persistent-1.0.2 2015-12-31 15:45:16 -02:00
Felipe Lessa
01b277b11e New .travis.yml using stack instead of cabal-meta. 2015-12-31 15:25:41 -02:00
Felipe Lessa
9d0ee44c06 serversession-backend-acid-state-1.0.3 2015-12-31 11:26:45 -02:00
Felipe Lessa
50c29148ab Make serversession-backend-acid-state work with older versions. 2015-12-31 11:26:25 -02:00
Felipe Lessa
e7a4de11f8 Fix serversession-example-yesod-persistent, add to stack.yaml. 2015-12-31 11:26:07 -02:00
Felipe Lessa
7433a914ce Merge pull request #6 from DanBurton/master
Upgrade to safecopy-0.9. yesodweb/serversession#5
2015-12-31 10:38:14 -02:00
Dan Burton
cfe7118e50 Upgrade to safecopy-0.9. yesodweb/serversession#5 2015-12-30 14:26:20 -08:00
Felipe Lessa
c528a671d4 Accept acid-state 0.13 and beyond (fixes #4). 2015-09-03 15:13:18 -03:00
Felipe Lessa
d882c65e6b Upgrade stack.yaml to latest versions. 2015-09-03 15:12:05 -03:00
Felipe Lessa
8f24238065 serversession-backend-persistent-1.0.1 2015-06-24 11:14:32 -03:00
Felipe Lessa
7b9e83366b Allow persistent-2.2. 2015-06-24 11:14:11 -03:00
Felipe Lessa
203c94cf1e Give more leeway to Travis. 2015-06-16 17:28:45 -03:00
Felipe Lessa
64dc7f9228 serversession-backend-acid-state-1.0.1 2015-06-16 13:56:49 -03:00
Felipe Lessa
b21904d751 Use modify instead of modify' on acid-state backend.
Shouldn't make any difference in strictness due to the way acid-state
works, and should allow us to support older mtl versions.
2015-06-16 13:55:48 -03:00
Felipe Lessa
c5ab2571a4 serversession-1.0.1. 2015-06-16 13:40:53 -03:00
Felipe Lessa
c27597573d loadSession uses getCurrentTime, don't use fakenow (fixes #1). 2015-06-16 13:39:47 -03:00