- 20 Sep, 2011 5 commits
-
-
Dave Cheney authored
This CL generalises the pair of halfConnection members that the serverConn holds into a single transport struct that is shared by both Server and Client, see also CL 5037047. This CL is a replacement for 5040046 which I closed by accident. R=agl, bradfitz CC=golang-dev https://golang.org/cl/5075042
-
Mike Samuel authored
Formulaic changes to transition functions in preparation for CL 5074041. This should be completely semantics preserving. R=nigeltao CC=golang-dev https://golang.org/cl/5091041
-
Brad Fitzpatrick authored
Fixes #2263 R=golang-dev, adg CC=golang-dev https://golang.org/cl/5076042
-
Mike Samuel authored
Instead of erroring on actions inside comments, use existing escaping pipeline to quash the output of actions inside comments. If a template maintainer uses a comment to disable template code: {{if .}}Hello, {{.}}!{{end}} -> <!--{{if true}}Hello, {{.}}!{{end}}--> will result in <!--Hello, !--> regardless of the value of {{.}}. In a later CL, comment elision will result in the entire commented-out section being dropped from the template output. Any side-effects in pipelines, such as panics, will still be realized. R=nigeltao CC=golang-dev https://golang.org/cl/5078041
-
Mike Samuel authored
Non semantics-changing refactoring in preparation for comment elision. R=nigeltao CC=golang-dev https://golang.org/cl/5071043
-
- 19 Sep, 2011 22 commits
-
-
Rob Pike authored
Fixes #2275. R=golang-dev, gri CC=golang-dev https://golang.org/cl/5082041
-
Ian Lance Taylor authored
R=golang-dev, dsymonds CC=golang-dev https://golang.org/cl/5030057
-
Dave Grijalva authored
fixes #2221 R=golang-dev, bradfitz CC=golang-dev https://golang.org/cl/4952052
-
Dmitriy Vyukov authored
MFENCE was introduced only on the Pentium4 (SSE2), while XADD was introduced on the 486. Fixes #2268. R=golang-dev, rsc CC=fshahriar, golang-dev https://golang.org/cl/5056045
-
Eric Eisner authored
Minorly improves runtime by about 2-3% R=gri, jeff CC=golang-dev https://golang.org/cl/5052045
-
Brad Fitzpatrick authored
Fixes #2272 R=rsc CC=golang-dev https://golang.org/cl/5043051
-
Russ Cox authored
R=r CC=golang-dev https://golang.org/cl/5056049
-
Russ Cox authored
The algtype-based test broke when algtype got a bit more fine-grained, so replace with an explicit check for the invalid key types. R=ken2 CC=golang-dev https://golang.org/cl/5071041
-
Brad Fitzpatrick authored
R=golang-dev, rsc CC=golang-dev https://golang.org/cl/5070041
-
Jaroslavas Počepko authored
cgo: cgo to use GOARCH from the environment, not runtime.GOARCH (otherwise it results in necessity of having 8cgo and 6cgo) R=rsc, adg CC=golang-dev https://golang.org/cl/4978061
-
Russ Cox authored
Fixes #2256. R=ken2 CC=golang-dev https://golang.org/cl/5044047
-
Dave Cheney authored
This line was triggering a null dereference warning under clang-3.0. The line was added in a46819aa9150 but compared to it's sibling in 6l it appears to be leftover debugging. R=rsc CC=golang-dev https://golang.org/cl/5049042
-
Russ Cox authored
R=dsymonds, r CC=golang-dev https://golang.org/cl/5050049
-
Andrey Mirtchovski authored
Previously /etc/hosts would be ignored altogether, this change returns matching results from that file without talking to a DNS server. R=rsc CC=golang-dev https://golang.org/cl/5061042
-
Marcel van Lohuizen authored
R=rsc CC=golang-dev https://golang.org/cl/5046041
-
Dave Cheney authored
R=agl CC=golang-dev https://golang.org/cl/5030054
-
Jeff Hodges authored
A port of Provos and Mazières's adapative hashing algorithm. See http://www.usenix.org/events/usenix99/provos/provos_html/node1.html R=bradfitz, agl, rsc, dchest CC=golang-dev https://golang.org/cl/4964078
-
Jeff Hodges authored
Mostly useful for the coming crypto/bcrypt package R=bradfitz, agl, rsc, agl CC=golang-dev https://golang.org/cl/5013043
-
Andrew Gerrand authored
R=golang-dev, dsymonds CC=golang-dev https://golang.org/cl/5059046
-
Andrew Gerrand authored
R=golang-dev, dsymonds CC=golang-dev https://golang.org/cl/5030045
-
Andrew Gerrand authored
R=dsymonds CC=golang-dev https://golang.org/cl/5045045
-
Mike Samuel authored
This addresses several use cases: (1) <h{{.HeaderLevel}}> used to build hierarchical documents. (2) <input on{{.EventType}}=...> used in widgets. (3) <div {{" dir=ltr"}}> used to embed bidi-hints. It also makes sure that we treat the two templates below the same: <img src={{if .Avatar}}"{{.Avatar}}"{{else}}"anonymous.png"{{end}}> <img src="{{if .Avatar}}{{.Avatar}}{{else}}anonymous.png{{end}}"> This splits up tTag into a number of sub-states and adds testcases. R=nigeltao CC=golang-dev https://golang.org/cl/5043042
-
- 18 Sep, 2011 2 commits
-
-
Mike Samuel authored
The template <{{.}} would violate the structure preservation property if allowed and not normalized, because when {{.}} emitted "", the "<" would be part of a text node, but if {{.}} emitted "a", the "<" would not be part of a text node. This change rewrites '<' in text nodes and RCDATA text nodes to '<' allowing template authors to write the common, and arguably more readable: Your price: {{.P1}} < list price {{.P2}} while preserving the structure preservation property. It also lays the groundwork for comment elision, rewriting Foo <!-- comment with secret project details --> Bar to Foo Bar R=nigeltao CC=golang-dev https://golang.org/cl/5043043
-
Mike Samuel authored
HTML5 uses "Valid URL potentially surrounded by spaces" for attrs: http://www.w3.org/TR/html5/index.html#attributes-1 <a href=" {{.}}"> should be escaped to filter out "javascript:..." as data. R=nigeltao CC=golang-dev https://golang.org/cl/5027045
-
- 17 Sep, 2011 8 commits
-
-
Adam Langley authored
The typical UNIX method for controlling long running process is to send the process signals. Since this doesn't get you very far, various ad-hoc, remote-control protocols have been used over time by programs like Apache and BIND. Implementing an SSH server means that Go code will have a standard, secure way to do this in the future. R=bradfitz, borman, dave, gustavo, dsymonds, r, adg, rsc, rogpeppe, lvd, kevlar, raul.san CC=golang-dev https://golang.org/cl/4962064
-
Mike Rosset authored
Documentation more along the lines of os.FileInfo Fixes #2180. R=golang-dev, dsymonds CC=golang-dev, mike.rosset https://golang.org/cl/4958055
-
Hector Chu authored
gotest src/pkg/exp/template/html was crashing because the exception handler overflowed the goroutine stack. R=alex.brainman, golang-dev CC=golang-dev https://golang.org/cl/5031049
-
Hector Chu authored
R=alex.brainman CC=golang-dev https://golang.org/cl/5047045
-
Hector Chu authored
Credit to jp for proof of concept. R=alex.brainman, jp, rsc, dvyukov CC=golang-dev https://golang.org/cl/4960057
-
Michael Shields authored
filepath.Glob is documented to return nil if no files match and an error only if the pattern is invalid. This change fixes it to work as documented and adds a regression test. R=golang-dev, r CC=golang-dev https://golang.org/cl/5040045
-
Rob Pike authored
R=golang-dev, dsymonds CC=golang-dev, mshields https://golang.org/cl/5042045
-
Ian Lance Taylor authored
bug330.go:11:6: error: expected numeric type bug330.go:12:6: error: expected numeric type R=golang-dev, gri CC=golang-dev https://golang.org/cl/5031050
-
- 16 Sep, 2011 3 commits
-
-
Robert Griesemer authored
R=r CC=golang-dev https://golang.org/cl/5039045
-
Yasuhiro Matsumoto authored
clean up duplicate environment for CGI. overriding former by latter. On windows, When there are duplicated environments like following, SCRIPT_FILENAME=c:/progra~1/php/php-cgi.exe SCRIPT_FILENAME=/foo.php CreateProcess use first entry. If make cgi.Handle like following, cgih = cgi.Handler{ Path: "c:/strawberry/perl/bin/perl.exe", Dir: "c:/path/to/webroot", Root: "c:/path/to/webroot", Args: []string{"foo.php"}, Env: []string{"SCRIPT_FILENAME=foo.php"}, } http/cgi should behave "SCRIPT_FILENAME is foo.php". But currently, http/cgi is set duplicate environment entries. So, browser show binary dump of "php-cgi.exe" that is specified indented SCRIPT_FILENAME in first entry. This change clean up duplicates, and use latters. R=golang-dev, bradfitz, bradfitz CC=golang-dev https://golang.org/cl/5010044
-
Marcel van Lohuizen authored
is going to support returning multiple matches for a single repeated group. R=r, rsc, mpvl CC=golang-dev https://golang.org/cl/5014045
-