summaryrefslogtreecommitdiff
path: root/src/pkg/rpc
AgeCommit message (Collapse)AuthorFilesLines
2012-04-06Imported Upstream version 1upstream/1Ondřej Surý9-1955/+0
2011-09-13Imported Upstream version 60upstream/60Ondřej Surý9-0/+1955
2011-09-13Imported Upstream version 60Ondřej Surý9-1844/+0
2011-08-03Imported Upstream version 59upstream/59Ondřej Surý6-29/+29
2011-06-30Imported Upstream version 58upstream/58Ondřej Surý1-1/+1
2011-04-28Imported Upstream version 2011.04.27upstream/2011.04.27Ondřej Surý2-45/+75
2011-04-26Imported Upstream version 2011.04.13upstream/2011.04.13Ondřej Surý4-74/+174
2011-04-20Imported Upstream version 2011.03.07.1upstream/2011.03.07.1Ondřej Surý1-1/+1
2011-02-18Imported Upstream version 2011.02.15upstream/2011.02.15Ondřej Surý6-120/+139
2011-02-14Imported Upstream version 2011-02-01.1upstream/2011-02-01.1Ondřej Surý3-19/+25
2011-01-17Imported Upstream version 2011.01.12upstream/2011.01.12Ondřej Surý9-114/+308
2010-07-01strings and bytes.Split: make count of 0 mean 0, not infinite.Rob Pike1-1/+1
Use a count of -1 for infinity. Ditto for Replace. R=rsc CC=golang-dev http://codereview.appspot.com/1704044 Committer: Rob Pike <r@golang.org>
2010-06-28rpc: allow non-struct args and reply (they must still be pointers)Rob Pike2-41/+75
R=rsc CC=golang-dev http://codereview.appspot.com/1722046
2010-06-21pkg/Makefile: allow DISABLE_NET_TESTS=1 to disable network testsRuss Cox1-2/+2
netchan, rpc, websocket: run test servers on 127.0.0.1, to avoid conflict with OS X firewall. TBR=r CC=golang-dev http://codereview.appspot.com/1689046
2010-06-20undo changes accidentally included in 09c5add99d50Russ Cox4-33/+15
R=ken2 CC=golang-dev http://codereview.appspot.com/1736042
2010-06-20gc: better error messages for interface failures, conversionsRuss Cox4-15/+46
x.go:13: cannot use t (type T) as type Reader in assignment: T does not implement Reader (Read method requires pointer receiver) x.go:19: cannot use q (type Q) as type Reader in assignment: Q does not implement Reader (missing Read method) have read() want Read() x.go:22: cannot use z (type int) as type Reader in assignment: int does not implement Reader (missing Read method) x.go:24: too many arguments to conversion to complex: complex(1, 3) R=ken2 CC=golang-dev http://codereview.appspot.com/1736041
2010-04-27rpc/jsonrpc: support for jsonrpc wire encodingRuss Cox4-0/+392
R=r CC=golang-dev http://codereview.appspot.com/989042
2010-04-27rpc: abstract client and server encodingsRuss Cox2-41/+131
R=r CC=golang-dev, rog http://codereview.appspot.com/811046
2010-04-16rpc: Add Close() method to rpc.Client to allow graceful connection teardown.Rob Pike1-2/+15
Fixes issue 675. R=rsc, msolo CC=golang-dev http://codereview.appspot.com/882049
2010-04-12fixes for rpc:Rob Pike1-2/+4
- don't log normal EOF - fix ServeConn to block as documented R=rsc, msolo CC=golang-dev http://codereview.appspot.com/886043
2010-03-24delete all uses of panicln by rewriting them using panic or,Rob Pike2-2/+2
in the tests, println+panic. gofmt some tests too. R=rsc CC=golang-dev http://codereview.appspot.com/741041
2010-03-18rpc documentation cleanup: remove ;'s from code in documentationRobert Griesemer1-18/+18
R=r CC=golang-dev http://codereview.appspot.com/624042
2010-01-18Significant extension to http.Response, which now adheres to thePetar Maymounkov1-1/+1
usage pattern of http.Request and paves the way to persistent connection handling. R=rsc CC=golang-dev http://codereview.appspot.com/185043 Committer: Russ Cox <rsc@golang.org>
2009-12-151) Change default gofmt default settings forRobert Griesemer4-314/+314
parsing and printing to new syntax. Use -oldparser to parse the old syntax, use -oldprinter to print the old syntax. 2) Change default gofmt formatting settings to use tabs for indentation only and to use spaces for alignment. This will make the code alignment insensitive to an editor's tabwidth. Use -spaces=false to use tabs for alignment. 3) Manually changed src/exp/parser/parser_test.go so that it doesn't try to parse the parser's source files using the old syntax (they have new syntax now). 4) gofmt -w src misc test/bench 4th set of files. R=rsc CC=golang-dev http://codereview.appspot.com/180049
2009-12-02fix segfault printing errors. add test case and improve messages.Rob Pike2-6/+41
Fixes issue 338. R=rsc CC=golang-dev http://codereview.appspot.com/163083
2009-11-24print error's string when panicking.Rob Pike1-1/+1
R=rsc http://codereview.appspot.com/157156
2009-11-23go: makes it build for the case $GOROOT has whitespacesSergio Luis O. B. Correia1-2/+2
the bash scripts and makefiles for building go didn't take into account the fact $GOROOT / $GOBIN could both be directories containing whitespaces, and was not possible to build it in such a situation. this commit adjusts the various makefiles/scripts to make it aware of that possibility, and now it builds successfully when using a path with whitespaces as well. Fixes issue 115. R=rsc, dsymonds1 http://codereview.appspot.com/157067 Committer: Russ Cox <rsc@golang.org>
2009-11-17Make non-errored RPC calls return 'nil' error to caller.Aron Nopanen1-2/+17
Error information is carried from RPC server to client in the string 'Error' field of rpc.Response. An empty string is sent in the success case. This empty string was being returned to the caller (of Client.Call or Client.Go), resulting in a non-nil error response. This change detects an empty-string Response.Error at the client, and translates it into a nil value in Call.Error. Tests updated to check error return in success cases. R=r, rsc http://codereview.appspot.com/154159 Committer: Rob Pike <r@golang.org>
2009-11-16fix bug causing empty strings to be become non-nil errors on client side of ↵Rob Pike2-2/+9
rpc connection. R=rsc CC=golang-dev http://codereview.appspot.com/155078
2009-11-09- replaced gofmt expression formatting algorithm withRobert Griesemer3-14/+14
rsc's algorithm - applied gofmt -w misc src - partial CL (last chunk) R=rsc, r http://go/go-review/1024041
2009-11-09remove semis after statements in one-statement statement listsRobert Griesemer4-37/+37
R=rsc, r http://go/go-review/1025029
2009-11-08delete a pointless todo in all_test.go.Rob Pike1-4/+8
address one in rpc/client.go R=rsc CC=go-dev http://go/go-review/1026030
2009-11-06Typo fixes.David Symonds1-1/+1
R=rsc CC=go-dev http://go/go-review/1026014 Committer: Russ Cox <rsc@golang.org>
2009-11-06- fine-tuning of one-line func heuristic (nodes.go)Robert Griesemer2-27/+9
- enabled for function declarations (not just function literals) - applied gofmt -w $GOROOT/src (look for instance at src/pkg/debug/elf/elf.go) R=r, rsc CC=go-dev http://go/go-review/1026006
2009-11-05gofmt'ed various stragglersRobert Griesemer1-18/+18
R=rsc http://go/go-review/1022002
2009-11-02package net cleanupRuss Cox3-4/+4
added ReadFrom/WriteTo for packet protocols like UDP. simplified the net.Conn interface. added new net.PacketConn interface for packet protocols. implemented proper UDP listener. cleaned up LocalAddr/RemoteAddr methods - cache in netFD. threw away various unused methods. an interface change: introduced net.Addr as a network address interface, to avoid conversion of UDP host:port to string and back for every ReadFrom/WriteTo sequence. another interface change: since signature of Listener.Accept was changing anyway, dropped the middle return value, because it is available as c.RemoteAddr(). (the Accept signature predates the existence of that method.) Dial and Listen still accept strings, but the proto-specific versions DialTCP, ListenUDP, etc. take net.Addr instead. because the generic Dial didn't change and because no one calls Accept directly (only indirectly via the http server), very little code will be affected by these interface changes. design comments welcome. R=p CC=go-dev, r http://go/go-review/1018017
2009-11-02remove goroutines from template parsing.Rob Pike1-11/+2
fix up one usage to take advantage. R=rsc CC=go-dev http://go/go-review/1018023
2009-10-07apply gofmt to rand reflect regexp rpc runtime sort strconv strings sync ↵Russ Cox3-44/+56
syscall testing time unicode unsafe utf8 R=gri DELTA=1409 (79 added, 24 deleted, 1306 changed) OCL=35415 CL=35437
2009-09-17unused importsRuss Cox3-6/+0
R=r OCL=34731 CL=34731
2009-09-15more "declared and not used".Russ Cox2-4/+4
the last round omitted := range and only checked 1 out of N vars in a multi-var := R=r OCL=34624 CL=34638
2009-09-14fix "declared and not used" errors in non-test code.Russ Cox2-5/+4
R=r DELTA=112 (6 added, 57 deleted, 49 changed) OCL=34610 CL=34610
2009-08-12convert non-low-level non-google pkg codeRuss Cox5-68/+6
to whole-package compilation. R=r OCL=33070 CL=33101
2009-07-30dotted namesRob Pike1-2/+2
R=rsc DELTA=28 (19 added, 0 deleted, 9 changed) OCL=32550 CL=32554
2009-07-29fix typoRob Pike1-1/+1
R=rsc OCL=32472 CL=32472
2009-07-29statistics HTML page for rpcRob Pike3-5/+121
R=rsc DELTA=121 (115 added, 0 deleted, 6 changed) OCL=32427 CL=32429
2009-07-27document rpc.Rob Pike3-34/+158
R=rsc DELTA=160 (124 added, 0 deleted, 36 changed) OCL=32233 CL=32256
2009-07-17change reflect.Type.Name() into two functions: Name() and PkgPath() for ease ↵Rob Pike1-1/+1
of use. R=rsc DELTA=31 (8 added, 2 deleted, 21 changed) OCL=31778 CL=31792
2009-07-15improve server handling of errors now that Decoder grabs full message.Rob Pike2-19/+16
R=rsc DELTA=23 (4 added, 7 deleted, 12 changed) OCL=31701 CL=31703
2009-07-15post-submit tweaks to previous clRob Pike1-1/+4
R=rsc DELTA=5 (4 added, 1 deleted, 0 changed) OCL=31690 CL=31692
2009-07-15handle errors better:Rob Pike2-18/+37
1) terminate outstanding calls on the client when we see EOF from server 2) allow data to drain on server before closing the connection R=rsc DELTA=41 (23 added, 4 deleted, 14 changed) OCL=31687 CL=31689