Commit Graph

4042 Commits

Author SHA1 Message Date
Roger Meier
1b17991f26 THRIFT-2897: Implement hash and isEqual: methods
Client: cocoa
Patch:  Jim Speth

This closes #330
2014-12-21 21:05:14 +01:00
Kirby1337
6d9a3ca7d9 THRIFT-2901 Fix for generated TypeScript functions + indentation of JavaScript maps 2014-12-21 17:38:58 +01:00
Nobuaki Sukegawa
a10697a9db THRIFT-2909 Improve travis build 2014-12-21 16:36:47 +01:00
Nobuaki Sukegawa
6622877a09 THRIFT-2098 Add support for Qt5+ 2014-12-21 16:36:47 +01:00
Nobuaki Sukegawa
6304a53414 THRIFT-2903 Qt4 library built with CMake does not work 2014-12-21 16:36:46 +01:00
Nobuaki Sukegawa
2825664f25 THRIFT-2893 CMake build fails with boost thread or std thread
Following changes are made to fix the build
* Add USE_..._THREAD compiler definitions correctly
* Link to boost_thread and boost_system when configured with boost thread
* Link to pthread if platform is posix and std thread is used
* Use PlatformThreadFactory in test code
2014-12-21 16:36:46 +01:00
Roger Meier
051ea1cf2f test/cpp/Makefile.am: add ZLIB_LIBS to LDFLAGS 2014-12-20 22:43:24 +01:00
Konrad Grochowski
38bf23404c THRIFT-2907 - macro ntohll defined only when needed
Client: C++
Patch: Jon Parise

This closes #334
2014-12-20 13:23:27 +01:00
Konrad Grochowski
ec8d8778b5 THRIFT-2906 - linking with boost_unit_test_framework made more portable
Client: C++
Patch: Jon Parise

BOOST_TEST_LDADD Makefile variable added and should be used when linking
with boost_unit_test_framework

This closes #333
2014-12-20 12:50:30 +01:00
Jens Geyer
6af074e419 THRIFT-2880 Read the network address from the listener if available.
Client: Go
Patch: awaw fumin <awawfumin@gmail.com>
2014-12-18 22:34:53 +01:00
Nobuaki Sukegawa
80784b1098 THRIFT-2902 Generated c_glib code does not compile with clang 2014-12-18 22:20:55 +01:00
Jens Geyer
20b51b667b Fixed a typo in test/README.md
Patch: Kirill Sevastyanenko <kirillseva@gmail.com>

This closes #329
2014-12-18 22:15:49 +01:00
Jens Geyer
c61b3a8170 THRIFT-2894 PHP json serializer skips maps with int/bool keys
Client: PHP
Patch: Stig Bakken <stig@zedge.net>

This closes #331

PHP generator: in jsonSerialize, only skip maps with non-scalar keys (previously skipped maps with non-string keys)
2014-12-18 21:48:42 +01:00
Jens Geyer
3bb34df8f3 THRIFT-2904 json_protocol_test.go fails
Client: Go
Patch: Jens Geyer
2014-12-18 00:14:46 +01:00
Jens Geyer
a792e5d5ac THRIFT-2894 PHP json serializer skips maps with int/bool keys
Client: PHP
Patch: Stig Bakken <stig@zedge.net>

This closes #320

PHP generator: in jsonSerialize, only skip maps with non-scalar keys (previously skipped maps with non-string keys)
2014-12-16 22:59:02 +01:00
Jens Geyer
9f9535c5fb THRIFT-2890 binary data may lose bytes with JSON transport under specific circumstances
Client: Delphi
Patch: Jens Geyer

minor fix regarding two warnings introduced with this patch
2014-12-14 15:00:34 +01:00
Jens Geyer
15fe1cb5f4 THRIFT-2891 binary data may cause a failure with JSON transport under specific circumstances
Client: Go
Patch: Jens Geyer
2014-12-14 03:18:18 +01:00
Jens Geyer
d8bddbcefb THRIFT-2890 binary data may lose bytes with JSON transport under specific circumstances
Client: Delphi
Patch: Jens Geyer

This closes #319

This patch consists of a ported version of the base64 encoding/decoding used in C#. It handles the above case correctly, decodes data more efficiently in-place, and removes the dependency to Indy (IdCoderMIME).
2014-12-14 00:41:33 +01:00
Jens Geyer
4991574b5e THRIFT-2884 Map does not serialize correctly for JSON protocol in Go library
Reverted commit 0a378709ab
See JIRA for details
2014-12-13 23:48:33 +01:00
Pascal Bach
54d3969e44 Add CMake builds to travis 2014-12-13 22:02:29 +01:00
Pascal Bach
d5f87e1f21 CMake: Add CMake support for Thrift libraries
Currently the following libraries are supported:
- C++
- C_Glib
- Java (using Ant wrapper)

The compilers CMake file is adjusted to work with the new global CMakeLists.txt file.

Signed-off-by: Roger Meier <r.meier@siemens.com>
Signed-off-by: Pascal Bach <pascal.bach@siemens.com>
Also-by: Sergei Nikulov <sergey.nikulov@gmail.com>
2014-12-13 22:02:29 +01:00
Jon Parise
a195a2574e THRIFT-2887 Respect --with-openssl when building C++ support. 2014-12-13 21:36:25 +01:00
winsweet
de76a3772b THRIFT-2882 Lua Generator: using string.len funtion to get struct(map,list,set) size 2014-12-13 21:29:55 +01:00
Nate Rosenblum
3c5a788d8f THRIFT-2836 Add moveable_types option to C++ generator
Setting this option enables generation of MoveConstructible types,
allowing types to be bound via move in std::bind. This is especially
pleasant when using Thrift container types.
2014-12-13 21:22:47 +01:00
Konrad Grochowski
714a9aa1c5 THRIFT-2888: JSON generator - fixed missing include
Client: JSON
Patch: Pascal Bach

<limits> was used but not directly included
2014-12-12 16:03:40 +01:00
Jens Geyer
0a378709ab THRIFT-2884 Map does not serialize correctly for JSON protocol in Go library
Client: Go
Patch: Liangliang He <lliang.he@gmail.com>

This closes #312
2014-12-10 21:04:28 +01:00
Jens Geyer
119869a204 THRIFT-2779 PHP TJSONProtocol encode unicode into UCS-4LE which can't be parsed by other langurage bindings
Client: PHP
Patch: Liangliang He <lliang.he@gmail.com>

This closes #313

This closes #244
2014-12-10 20:54:14 +01:00
Konrad Grochowski
40b2b64b16 some binary files excluded from codespell check in 'make style' 2014-12-09 15:26:39 +01:00
Konrad Grochowski
3876ea70a2 make style applied 2014-12-09 15:24:56 +01:00
Jens Geyer
1f42d31575 THRIFT-2868 Enhance error handling in the Go client
Client: Go
Patch: Chi Vinh Le <cvl@chinet.info>

This closes #297
2014-12-08 21:49:54 +01:00
Jens Geyer
57cd421de3 THRIFT-2881 Handle errors from Accept() correctly
Client: Go
Patch: awaw fumin <awawfumin@gmail.com>

This closes #309

Often in tests, servers are started and closed when a test case is
finished, as in the standard library's "httptest" package.

http://golang.org/pkg/net/http/httptest/#example_Server

However, currently the "p.quit" channel of TSimpleServer does not
correctly handle the case when the listener socket is Closed, resulting
in spurious logs with the text "Accept err: ...".
For details of handling closed listener sockets, see

https://code.google.com/p/go/issues/detail?id=4373
http://zhen.org/blog/graceful-shutdown-of-go-net-dot-listeners/
http://stackoverflow.com/a/13419724/2182406
2014-12-08 21:31:33 +01:00
winsweet
38a1c66428 THRIFT-2879 TMemoryBuffer: using lua string in wrong way 2014-12-08 20:54:46 +01:00
Nobuaki Sukegawa
d0d7a65581 THRIFT-2838 TNonblockingServer can bind to port 0 (i.e., get an OS-assigned port) but there is no way to get the port number 2014-12-07 17:00:02 +01:00
Roger Meier
71067a8090 THRIFT-2855 Move contributing.md to the root of the repository 2014-12-07 14:02:45 +01:00
Konrad Grochowski
0494987fd1 THRIFT-2859: JSON generator - fixed i64 numbers generation
Client: JSON
Patch: Stig Bakken

Also forced "C locale" for numbers - problems where detected in JSON lib
in C++, so fixing it in generator also might be a good idea.

This closes #305
2014-12-06 20:09:10 +01:00
Konrad Grochowski
4c1fde226e make style applied 2014-12-06 19:54:26 +01:00
Roger Meier
bf9603c77e THRIFT-2846 Expose ciphers parameter from ssl.wrap_socket()
fix: add missing comma
2014-12-06 18:52:35 +01:00
Pascal Bach
3de6b8fe23 THRIFT-2873 Make TPipe and TPipeServer working with unicode on windows
Signed-off-by: Pascal Bach <pascal.bach@siemens.com>
2014-12-06 16:30:03 +01:00
Konrad Grochowski
9db4b51b66 THRIFT-2876: C++ - tests: coping __isset structure in copy constructor
Client: C++
Patch: Nobuaki Sukegawa

Test verifies THRIFT-2526
This closes #303
2014-12-04 23:32:52 +01:00
Konrad Grochowski
6794698a12 THRIFT-2874: C++ - typo in TDenseProtocol comment fixed
Client: C++
Patch: Nobuaki Sukegawa

This closes #302
2014-12-04 23:22:41 +01:00
Konrad Grochowski
37b7a0afe0 THRIFT-2874: C++ - unused field removed from TBinaryProtocol
Client: C++
Patch: Nobuaki Sukegawa

This closes #301
2014-12-04 22:35:39 +01:00
Jens Geyer
fb05cf67db THRIFT-2789 TNonblockingServer leaks socket FD's under load
Client: C++
Patch: Sergey <drigh@deviantart.com> and Qiao Mu <qiaomuf@gmail.com>
2014-12-04 21:52:28 +01:00
Jens Geyer
78c57e1720 THRIFT-2871 Missing semicolon in thrift.js
Client: NodeJS
Patch: Chi Vinh Le <cvl@chinet.info>

This closes #300

JSHint complains about missing semicolon. Might break older browser compatibility.
2014-12-02 21:22:04 +01:00
Randy Abernethy
878483759c THRIFT-2844:Add Browserify support to node
Client: Node
Patch Cameron Ring

Adds Node support for ArrayBuffer when run in Browser
under Browserify.
2014-12-02 05:42:00 -08:00
Zach Steindler
3a5252999d THRIFT-2825 Supplying unicode to python Thrift client can cause next request arguments to get overwritten
Make sure we clear wbuf on exception, so it doesn't contain a
partial function call.

Patch: Zach Steindler

This closes #282
2014-12-02 00:14:11 +01:00
Roger Meier
fc1303e2b5 THRIFT-2846 Expose ciphers parameter from ssl.wrap_socket()
Patch: Rodney Richardson

This closes #277
2014-12-02 00:11:54 +01:00
Anatol Pomozov
4bf97c196a Do not drop CFLAGS from c_glib compilation
CFLAGS contains important flags. Dropping it introduces e.g. such issues:
https://sourceware.org/bugzilla/show_bug.cgi?id=13979

Signed-off-by: Anatol Pomozov <anatol.pomozov@gmail.com>

This closes #284
2014-12-02 00:10:11 +01:00
Konrad Grochowski
6ce1e73d71 THRIFT-2866: Go - generator code readability enhanced
Client: Go
Patch: Chi Vinh Le

This closes #295
2014-12-01 19:30:33 +01:00
Konrad Grochowski
9462ce388e THRIFT-2859: compilation fix, C++11 removed from JSON generator 2014-12-01 12:11:31 +01:00
Konrad Grochowski
dae6d3cbd1 'make style' applied 2014-12-01 11:26:07 +01:00