summaryrefslogtreecommitdiff
path: root/src/pkg/rpc/server_test.go
AgeCommit message (Collapse)AuthorFilesLines
2011-09-13Imported Upstream version 60upstream/60Ondřej Surý1-0/+501
2011-09-13Imported Upstream version 60Ondřej Surý1-418/+0
2011-08-03Imported Upstream version 59upstream/59Ondřej Surý1-1/+1
2011-04-28Imported Upstream version 2011.04.27upstream/2011.04.27Ondřej Surý1-21/+38
2011-04-26Imported Upstream version 2011.04.13upstream/2011.04.13Ondřej Surý1-7/+55
2011-02-18Imported Upstream version 2011.02.15upstream/2011.02.15Ondřej Surý1-66/+37
2011-02-14Imported Upstream version 2011-02-01.1upstream/2011-02-01.1Ondřej Surý1-8/+6
2011-01-17Imported Upstream version 2011.01.12upstream/2011.01.12Ondřej Surý1-18/+108
2010-06-28rpc: allow non-struct args and reply (they must still be pointers)Rob Pike1-15/+56
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-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
2009-12-151) Change default gofmt default settings forRobert Griesemer1-68/+68
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-0/+35
Fixes issue 338. R=rsc CC=golang-dev http://codereview.appspot.com/163083
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-09- replaced gofmt expression formatting algorithm withRobert Griesemer1-10/+10
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-21/+21
R=rsc, r http://go/go-review/1025029
2009-11-02package net cleanupRuss Cox1-2/+2
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-15/+15
syscall testing time unicode unsafe utf8 R=gri DELTA=1409 (79 added, 24 deleted, 1306 changed) OCL=35415 CL=35437
2009-09-17unused importsRuss Cox1-2/+0
R=r OCL=34731 CL=34731
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-2/+2
R=rsc DELTA=160 (124 added, 0 deleted, 36 changed) OCL=32233 CL=32256
2009-07-14add HTTP supportRob Pike1-18/+34
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-15/+74
R=rsc DELTA=186 (133 added, 20 deleted, 33 changed) OCL=31611 CL=31616
2009-07-13rpc.Rob Pike1-30/+27
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/+134
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