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

Unified Diff: chrome/browser/chromeos/web_socket_proxy.h

Issue 6683060: Private API for extensions like ssh-client that need access to TCP. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: c Created 9 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/chromeos/web_socket_proxy.h
diff --git a/chrome/browser/chromeos/web_socket_proxy.h b/chrome/browser/chromeos/web_socket_proxy.h
index 9f15cbc4cf3be5f4e7379271027aa0cddd57a8b4..f3d19e3a64e8b10af33e381e093c2db333f095e8 100644
--- a/chrome/browser/chromeos/web_socket_proxy.h
+++ b/chrome/browser/chromeos/web_socket_proxy.h
@@ -16,14 +16,15 @@ namespace chromeos {
class WebSocketProxy {
public:
- static const size_t kReadBufferLimit = 6 * 1024 * 1024;
+ static const size_t kReadBufferLimit = 12 * 1024 * 1024;
// Limits incoming websocket headers in initial stage of connection.
static const size_t kHeaderLimit = 32 * 1024;
// Limits number of simultaneously open connections.
- static const size_t kConnPoolLimit = 1000;
+ static const size_t kConnPoolLimit = 200;
Dmitry Polukhin 2011/05/17 10:58:39 I think it should be even much smaller 20.
Denis Lagno 2011/05/17 22:15:08 Done.
+ // Empty allowed_origins vector disables check for origin.
WebSocketProxy(
const std::vector<std::string>& allowed_origins,
struct sockaddr* addr, int addr_len);
« no previous file with comments | « no previous file | chrome/browser/chromeos/web_socket_proxy.cc » ('j') | chrome/browser/chromeos/web_socket_proxy_controller.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698