Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(90)

Issue 11175030: Add sessions to HttpServer. (Closed)

Created:
8 years, 2 months ago by Anders Johnsen
Modified:
8 years, 2 months ago
Reviewers:
Søren Gjesse
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Add sessions to HttpServer. A session is started when HttpRequest.getSession() is called. The session will then be added to the session manager. The session manager then controls timeouts. The session id is create by using the a crypto-random sequence of 16 bytes. These are extracted by using /dev/urandom on posix and CryptGenRandom on windows. BUG= Committed: https://code.google.com/p/dart/source/detail?r=13870

Patch Set 1 #

Total comments: 8

Patch Set 2 : Review update. #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+484 lines, -3 lines) Patch
M runtime/bin/builtin_impl_sources.gypi View 1 chunk +4 lines, -0 lines 0 comments Download
M runtime/bin/builtin_natives.cc View 1 chunk +1 line, -0 lines 0 comments Download
A runtime/bin/crypto.h View 1 chunk +22 lines, -0 lines 0 comments Download
A runtime/bin/crypto.cc View 1 1 chunk +36 lines, -0 lines 0 comments Download
A runtime/bin/crypto_linux.cc View 1 chunk +18 lines, -0 lines 0 comments Download
A runtime/bin/crypto_macos.cc View 1 chunk +18 lines, -0 lines 0 comments Download
A runtime/bin/crypto_win.cc View 1 chunk +22 lines, -0 lines 0 comments Download
M runtime/bin/http.dart View 1 3 chunks +39 lines, -1 line 0 comments Download
M runtime/bin/http_impl.dart View 1 9 chunks +60 lines, -2 lines 1 comment Download
A runtime/bin/http_session.dart View 1 1 chunk +160 lines, -0 lines 0 comments Download
M runtime/bin/io_sources.gypi View 1 chunk +1 line, -0 lines 0 comments Download
A tests/standalone/io/http_session_test.dart View 1 chunk +103 lines, -0 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
Anders Johnsen
Oops, I deleted the other one(??????)
8 years, 2 months ago (2012-10-22 09:53:41 UTC) #1
Søren Gjesse
LGTM with comments http://codereview.chromium.org/11175030/diff/1/runtime/bin/crypto.cc File runtime/bin/crypto.cc (right): http://codereview.chromium.org/11175030/diff/1/runtime/bin/crypto.cc#newcode19 runtime/bin/crypto.cc:19: uint8_t* buffer = new uint8_t[count]; Shouldn't ...
8 years, 2 months ago (2012-10-22 11:13:02 UTC) #2
Anders Johnsen
Fixed, let me know if it's still looking good! :) https://codereview.chromium.org/11175030/diff/1/runtime/bin/crypto.cc File runtime/bin/crypto.cc (right): https://codereview.chromium.org/11175030/diff/1/runtime/bin/crypto.cc#newcode19 ...
8 years, 2 months ago (2012-10-22 12:18:57 UTC) #3
Søren Gjesse
8 years, 2 months ago (2012-10-22 12:56:27 UTC) #4
lgtm

http://codereview.chromium.org/11175030/diff/7001/runtime/bin/http_impl.dart
File runtime/bin/http_impl.dart (right):

http://codereview.chromium.org/11175030/diff/7001/runtime/bin/http_impl.dart#...
runtime/bin/http_impl.dart:877: if
(_httpConnection._server._sessionManagerInstance != null) {
Nice.

Powered by Google App Engine
This is Rietveld 408576698