summaryrefslogtreecommitdiff
path: root/src/pkg/rpc/client.go
AgeCommit message (Collapse)AuthorFilesLines
2011-09-13Imported Upstream version 60upstream/60Ondřej Surý1-0/+286
2011-09-13Imported Upstream version 60Ondřej Surý1-287/+0
2011-08-03Imported Upstream version 59upstream/59Ondřej Surý1-4/+4
2011-06-30Imported Upstream version 58upstream/58Ondřej Surý1-1/+1
2011-04-26Imported Upstream version 2011.04.13upstream/2011.04.13Ondřej Surý1-18/+27
2011-02-18Imported Upstream version 2011.02.15upstream/2011.02.15Ondřej Surý1-19/+39
2011-02-14Imported Upstream version 2011-02-01.1upstream/2011-02-01.1Ondřej Surý1-6/+14
2011-01-17Imported Upstream version 2011.01.12upstream/2011.01.12Ondřej Surý1-6/+15
2010-06-20undo changes accidentally included in 09c5add99d50Russ Cox1-6/+0
R=ken2 CC=golang-dev http://codereview.appspot.com/1736042
2010-06-20gc: better error messages for interface failures, conversionsRuss Cox1-0/+6
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: abstract client and server encodingsRuss Cox1-14/+56
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-03-24delete all uses of panicln by rewriting them using panic or,Rob Pike1-1/+1
in the tests, println+panic. gofmt some tests too. R=rsc CC=golang-dev http://codereview.appspot.com/741041
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 Griesemer1-82/+82
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-11-24print error's string when panicking.Rob Pike1-1/+1
R=rsc http://codereview.appspot.com/157156
2009-11-16fix bug causing empty strings to be become non-nil errors on client side of ↵Rob Pike1-1/+6
rpc connection. R=rsc CC=golang-dev http://codereview.appspot.com/155078
2009-11-09- replaced gofmt expression formatting algorithm withRobert Griesemer1-2/+2
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 Griesemer1-9/+9
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-05gofmt'ed various stragglersRobert Griesemer1-18/+18
R=rsc http://go/go-review/1022002
2009-11-02package net cleanupRuss Cox1-1/+1
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-09-17unused importsRuss Cox1-1/+0
R=r OCL=34731 CL=34731
2009-09-15more "declared and not used".Russ Cox1-1/+1
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 Cox1-4/+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 Cox1-1/+0
to whole-package compilation. R=r OCL=33070 CL=33101
2009-07-27document rpc.Rob Pike1-11/+14
R=rsc DELTA=160 (124 added, 0 deleted, 36 changed) OCL=32233 CL=32256
2009-07-15improve server handling of errors now that Decoder grabs full message.Rob Pike1-2/+2
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 Pike1-10/+20
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
2009-07-15change HTTP access for RPC.Russ Cox1-2/+16
1. use CONNECT instead of GET. CONNECT has exactly the meaning we want; most of the time people connect to ip:port; we're connecting to /_goRPC_ 2. wait for a successful HTTP response before assuming we are connected to the RPC protocol. this allows better error reporting and also keeps the protocol alternating between speakers, so that the buffering in the HTTP request reader cannot accidentally eat some RPC bytes too. gotest sometimes hangs, but not in HTTP. gotest -match=Unknown hangs every few runs even in a clean client. R=r DELTA=117 (57 added, 44 deleted, 16 changed) OCL=31656 CL=31685
2009-07-14add HTTP supportRob Pike1-0/+20
R=rsc DELTA=159 (110 added, 29 deleted, 20 changed) OCL=31646 CL=31652
2009-07-14improve rpc code. more robust. more tests.Rob Pike1-12/+28
R=rsc DELTA=186 (133 added, 20 deleted, 33 changed) OCL=31611 CL=31616
2009-07-13rpc.Rob Pike1-1/+100
client library. muxes on both ends. R=rsc DELTA=178 (132 added, 26 deleted, 20 changed) OCL=31541 CL=31556
2009-07-13the beginnings of an rpc service.Rob Pike1-0/+14
server side only; no client help yet (but it's easy). no http yet. service is synchronous. all this will improve. R=rsc DELTA=403 (403 added, 0 deleted, 0 changed) OCL=31522 CL=31536