THRIFT-599. erl: Don't use unnecessary processes in the Erlang transports and clients
authorBryan Duxbury <bryanduxbury@apache.org>
Thu, 19 Aug 2010 05:06:02 +0000 (05:06 +0000)
committerBryan Duxbury <bryanduxbury@apache.org>
Thu, 19 Aug 2010 05:06:02 +0000 (05:06 +0000)
commitd3879f80c6bfb8c60b569ceb9a6235fcdff066a2
tree7fdca464c46a47906eec4da069f20a7f90cf12d7
parentd50f347e33abcfc5c4d70bb8d276f3e1951f4e00
THRIFT-599. erl: Don't use unnecessary processes in the Erlang transports and clients

The only user-visible changes are to the client. Every thrift call now returns {NewClient, Result} instead of just Result.

Patch: David Reiss (assist to Anthony Molinaro)

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@987018 13f79535-47bb-0310-9956-ffa450edef68
31 files changed:
compiler/cpp/src/generate/t_erl_generator.cc
lib/erl/README
lib/erl/build/otp.mk
lib/erl/include/thrift_protocol.hrl
lib/erl/include/thrift_protocol_behaviour.hrl [moved from lib/erl/src/test_service.erl with 52% similarity]
lib/erl/include/thrift_transport_behaviour.hrl [moved from lib/erl/src/test_handler.erl with 64% similarity]
lib/erl/src/Makefile
lib/erl/src/thrift_base64_transport.erl
lib/erl/src/thrift_binary_protocol.erl
lib/erl/src/thrift_buffered_transport.erl
lib/erl/src/thrift_client.erl
lib/erl/src/thrift_client_util.erl [new file with mode: 0644]
lib/erl/src/thrift_disk_log_transport.erl
lib/erl/src/thrift_file_transport.erl
lib/erl/src/thrift_framed_transport.erl
lib/erl/src/thrift_http_transport.erl
lib/erl/src/thrift_memory_buffer.erl
lib/erl/src/thrift_processor.erl
lib/erl/src/thrift_protocol.erl
lib/erl/src/thrift_server.erl
lib/erl/src/thrift_socket_server.erl
lib/erl/src/thrift_socket_transport.erl
lib/erl/src/thrift_transport.erl
lib/erl/src/thrift_transport_state_test.erl [new file with mode: 0644]
test/erl/Makefile
test/erl/src/test_client.erl [new file with mode: 0644]
test/erl/src/test_disklog.erl
test/erl/src/test_membuffer.erl
test/erl/src/test_server.erl
test/erl/src/test_tether.erl [deleted file]
tutorial/erl/client.erl