summaryrefslogtreecommitdiff
path: root/src/pkg/rpc/server.go
AgeCommit message (Collapse)AuthorFilesLines
2011-09-13Imported Upstream version 60upstream/60Ondřej Surý1-0/+637
2011-09-13Imported Upstream version 60Ondřej Surý1-608/+0
2011-08-03Imported Upstream version 59upstream/59Ondřej Surý1-8/+8
2011-04-28Imported Upstream version 2011.04.27upstream/2011.04.27Ondřej Surý1-24/+37
2011-04-26Imported Upstream version 2011.04.13upstream/2011.04.13Ondřej Surý1-48/+91
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ý1-34/+56
2011-02-14Imported Upstream version 2011-02-01.1upstream/2011-02-01.1Ondřej Surý1-5/+5
2011-01-17Imported Upstream version 2011.01.12upstream/2011.01.12Ondřej Surý1-65/+126
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 Pike1-26/+19
R=rsc CC=golang-dev http://codereview.appspot.com/1722046
2010-06-20undo changes accidentally included in 09c5add99d50Russ Cox1-21/+11
R=ken2 CC=golang-dev http://codereview.appspot.com/1736042
2010-06-20gc: better error messages for interface failures, conversionsRuss Cox1-11/+34
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-27/+75
R=r CC=golang-dev, rog http://codereview.appspot.com/811046
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-18rpc documentation cleanup: remove ;'s from code in documentationRobert Griesemer1-18/+18
R=r CC=golang-dev http://codereview.appspot.com/624042
2009-12-151) Change default gofmt default settings forRobert Griesemer1-137/+137
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 Pike1-6/+6
Fixes issue 338. R=rsc CC=golang-dev http://codereview.appspot.com/163083
2009-11-16fix bug causing empty strings to be become non-nil errors on client side of ↵Rob Pike1-1/+3
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-6/+6
R=rsc, r http://go/go-review/1025029
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 Griesemer1-9/+3
- 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-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-10-07apply gofmt to rand reflect regexp rpc runtime sort strconv strings sync ↵Russ Cox1-21/+22
syscall testing time unicode unsafe utf8 R=gri DELTA=1409 (79 added, 24 deleted, 1306 changed) OCL=35415 CL=35437
2009-09-15more "declared and not used".Russ Cox1-3/+3
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-1/+0
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-2/+0
to whole-package compilation. R=r OCL=33070 CL=33101
2009-07-29fix typoRob Pike1-1/+1
R=rsc OCL=32472 CL=32472
2009-07-29statistics HTML page for rpcRob Pike1-4/+19
R=rsc DELTA=121 (115 added, 0 deleted, 6 changed) OCL=32427 CL=32429
2009-07-27document rpc.Rob Pike1-21/+142
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 Pike1-17/+14
R=rsc DELTA=23 (4 added, 7 deleted, 12 changed) OCL=31701 CL=31703
2009-07-15handle errors better:Rob Pike1-8/+17
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-20/+11
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-23/+68
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-17/+55
R=rsc DELTA=186 (133 added, 20 deleted, 33 changed) OCL=31611 CL=31616
2009-07-13rpc.Rob Pike1-12/+15
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/+200
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