Side by Side Diff
Use n/p to move between diff chunks; N/P to move between comments.
Draft comments are only viewable by you.
Keyboard Shortcuts
File
u
:
up to issue
j
/
k
:
jump to file after / before current file
J
/
K
:
jump to next file with a comment after / before current file
Side-by-side diff
i
:
toggle intra-line diffs
e
:
expand all comments
c
:
collapse all comments
s
:
toggle showing all comments
n
/
p
:
next / previous diff chunk or comment
N
/
P
:
next / previous comment
<Up>
/
<Down>
:
next / previous line
Issue
u
:
up to list of issues
j
/
k
:
jump to patch after / before current patch
o
/
<Enter>
:
open current patch in side-by-side view
i
:
open current patch in unified diff view
Issue List
j
/
k
:
jump to issue after / before current issue
o
/
<Enter>
:
open current issue
Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr)
|
Please choose your nickname with
Settings
|
Help
|
Chromium Project
|
Gerrit Changes
|
Sign out
(51)
Issues
Search
My Issues
|
Starred
Open
|
Closed
|
All
Side by Side Diff: net/web2socket_proxy/web2socket.cc
Issue
5484001
:
Web2socket proxy. (Closed)
Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: additional files
Created 10 years ago
Use n/p to move between diff chunks; N/P to move between comments.
Draft comments are only viewable by you.
Context:
3 lines
10 lines
25 lines
50 lines
75 lines
100 lines
Whole file
Column Width:
Tab Spaces:
Jump to:
net/net.gyp
net/web2socket_proxy/web2socket.h
net/web2socket_proxy/web2socket.cc
net/web2socket_proxy/web2socket_conn.h
net/web2socket_proxy/web2socket_conn.cc
net/web2socket_proxy/web2socket_main.cc
net/web2socket_proxy/web2socket_serv.h
net/web2socket_proxy/web2socket_serv.cc
third_party/libevent/chromium.patch
third_party/libevent/evdns.h
View unified diff
|
Download patch
|
Annotate
|
Revision Log
« net/web2socket_proxy/web2socket.h
('K') |
« net/web2socket_proxy/web2socket.h
('k') |
net/web2socket_proxy/web2socket_conn.h »
('j') |
net/web2socket_proxy/web2socket_conn.cc »
('J')
Toggle Intra-line Diffs
('i') |
Expand Comments
('e') |
Collapse Comments
('c') |
Show Comments
Hide Comments
('s')
OLD
NEW
(Empty)
1
// Copyright (c) 2010 The Chromium Authors. All rights reserved.
2
// Use of this source code is governed by a BSD-style license that can be
3
// found in the LICENSE file.
4
5
#include <stdlib.h>
6
#include <sys/wait.h>
7
#include <unistd.h>
8
9
#include "web2socket_serv.h"
10
11
void RunWeb2SocketServer(const std::string& origin, int port) {
12
for (int step = 0;; step += (step < 10)) {
13
int p = fork();
14
if (p == 0) {
15
if (Web2SocketServ::IgnoreSigPipe()) {
16
Web2SocketServ ws(origin, port);
17
ws.Run();
18
}
19
exit(1);
20
}
21
if (p > 0) {
22
waitpid(p, NULL, 0);
23
}
24
sleep(1 << step);
25
}
26
}
27
OLD
NEW
« net/web2socket_proxy/web2socket.h
('K') |
« net/web2socket_proxy/web2socket.h
('k') |
net/web2socket_proxy/web2socket_conn.h »
('j') |
net/web2socket_proxy/web2socket_conn.cc »
('J')
Issue 5484001: Web2socket proxy. (Closed)
Created 10 years ago by Denis Lagno
Modified 9 years, 6 months ago
Reviewers: Nikita (slow), tyoshino (SeeGerritForStatus), Sergey Ulanov
Base URL: svn://svn.chromium.org/chrome/trunk/src
Comments: 24
This is Rietveld
408576698