Commit Graph

2958 Commits

Author SHA1 Message Date
Roger Meier
c75797d906 THRIFT-1583 c_glib leaks memory
THRIFT-1578 C_GLib generated code does not compile
THRIFT-1582 Bad includes of nested thrift files in c_glib

Patch: José Antonio Santos
Minor Modificatons by roger:
- thrift prefix for includes
- g_object_unref instead of g_clear_object (needs glib>=2.28)

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1331752 13f79535-47bb-0310-9956-ffa450edef68
2012-04-28 11:33:58 +00:00
Roger Meier
7c7679198f THRIFT-1577 Compile thrift with php module for php 5.4.0 failed. need to replace function_entry with zend_function_entry
Patch: Matrix Ji

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1327152 13f79535-47bb-0310-9956-ffa450edef68
2012-04-17 16:03:21 +00:00
Roger Meier
b661e83fab THRIFT-1277 Node.js serializes false booleans as null
Patch: Henrique Mendonca

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1326371 13f79535-47bb-0310-9956-ffa450edef68
2012-04-15 15:58:43 +00:00
Roger Meier
2badac7bd2 THRIFT-1552 Thrift (cpp) include files shouldn't require adding "thrift" to the compilers include path
Some additional fixes to build it on windows as well
Patch: Benoit Dion and Roger Meier

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1326087 13f79535-47bb-0310-9956-ffa450edef68
2012-04-14 11:03:43 +00:00
Roger Meier
1516be04e0 Merge branch 'trunk' of https://github.com/benoitdion/thrift into trunk
git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1326086 13f79535-47bb-0310-9956-ffa450edef68
2012-04-14 11:03:21 +00:00
Roger Meier
92a90ff8cf THRIFT-1566 Thrift/cpp: Use some different string operations
git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1325792 13f79535-47bb-0310-9956-ffa450edef68
2012-04-13 14:50:32 +00:00
Roger Meier
5346e7200a THRIFT-1570 Correctly generate code for empty services.
Patch: Dave Watson

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1325786 13f79535-47bb-0310-9956-ffa450edef68
2012-04-13 14:38:19 +00:00
Roger Meier
629d5a9bcf THRIFT-1565 Thrift/cpp: Use default constructor for strings
Patch: Dave Watson

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1325785 13f79535-47bb-0310-9956-ffa450edef68
2012-04-13 14:33:56 +00:00
Roger Meier
cfff8569bb THRIFT-1569 thrift: add stop() method to python TNonblockingServer
Patch: Dave Watson

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1325784 13f79535-47bb-0310-9956-ffa450edef68
2012-04-13 14:24:55 +00:00
Roger Meier
3f5a264cd9 THRIFT-1568 Thrift: Add User-Agent header to Python THttpClient
Patch: Dave Watson

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1325781 13f79535-47bb-0310-9956-ffa450edef68
2012-04-13 14:20:08 +00:00
Roger Meier
a3410db0c8 THRIFT-1564 Minor fixes to TZlibTransport
Patch: Dave Watson

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1325712 13f79535-47bb-0310-9956-ffa450edef68
2012-04-13 10:30:11 +00:00
Roger Meier
33eaa0f100 THRIFT-1552 Thrift (cpp) include files shouldn't require adding "thrift" to the compilers include path.
roger: some additional fixes

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1325677 13f79535-47bb-0310-9956-ffa450edef68
2012-04-13 09:13:13 +00:00
Roger Meier
49ff8b123a THRIFT-1552 Include paths for c/c++ should be prefixed with 'thrift/'
To ensure there are no include path collisions the C and C++ header
include paths should include 'thrift' as the root leaf. This will
prevent having to place /usr/include/thrift into the compilers include
header search path, which might otherwise result in the compiler
accidentally picking up headers that it shouldn't.

e.g. #include <foo/bar.h> should be #include <thrift/foo/bar.h>

Change-Id: I48f2b0f549bda0fc81e85506ac857adc800b98a1

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1325674 13f79535-47bb-0310-9956-ffa450edef68
2012-04-13 09:12:31 +00:00
Roger Meier
49ef6587b4 THRIFT-1079 Support i64 in AS3
Patch: Ethan Urie

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1325048 13f79535-47bb-0310-9956-ffa450edef68
2012-04-11 22:28:26 +00:00
Roger Meier
fa392e91ad THRIFT-1560 Add setCustomHeaders() method to python thrift lib
Patch: Dave Watson

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1325041 13f79535-47bb-0310-9956-ffa450edef68
2012-04-11 22:15:15 +00:00
Roger Meier
02c827bcfe THRIFT-1562 Fix issue with TFramedTransport::readSlow
Patch: Dave Watson

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1325034 13f79535-47bb-0310-9956-ffa450edef68
2012-04-11 21:59:57 +00:00
Roger Meier
d8f50f3ffe THRIFT-1563 thrift: make serve() throw an exception if it fails
Patch: Dave Watson

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1325026 13f79535-47bb-0310-9956-ffa450edef68
2012-04-11 21:48:56 +00:00
Roger Meier
ec8027ffad THRIFT-1561 expose #active connections
Patch: Dave Watson

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1325024 13f79535-47bb-0310-9956-ffa450edef68
2012-04-11 21:43:25 +00:00
Roger Meier
d1bf5d0336 THRIFT-1558 Named Pipe and Anonymous Pipe transport for Windows
Patch: Peace C

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1325020 13f79535-47bb-0310-9956-ffa450edef68
2012-04-11 21:38:56 +00:00
Roger Meier
b1ec4ccca1 THRIFT-1412 Thrift Transport classes should manage the lifetime of objects implementing IDisposable by implementing IDisposable themselves
Patch: Joshua Garvin

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1325013 13f79535-47bb-0310-9956-ffa450edef68
2012-04-11 21:21:41 +00:00
Roger Meier
5c85461995 THRIFT-1555 Delphi version of the tutorial code
Patch: Jens Geyer

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1311313 13f79535-47bb-0310-9956-ffa450edef68
2012-04-09 16:31:42 +00:00
Roger Meier
380e919a13 THRIFT-1554 Inherited service methods are not resolved in derived service implementations
Patch: Jens Geyer

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1311311 13f79535-47bb-0310-9956-ffa450edef68
2012-04-09 16:25:47 +00:00
Roger Meier
c64d6f0992 THRIFT-1398 Compiler warning on generated code (Multiface kills -Wall -Werror on gcc 4.6.1)
Patch: Nevo Hed

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1311066 13f79535-47bb-0310-9956-ffa450edef68
2012-04-08 18:18:56 +00:00
Roger Meier
7699b40232 add license headers, fix compiler warnings
git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1311065 13f79535-47bb-0310-9956-ffa450edef68
2012-04-08 18:18:44 +00:00
Roger Meier
5c80802332 THRIFT-1553 thrift nodejs service side can't read map structure, key as enum, value as Object
Patch: Henrique Mendonca

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1310986 13f79535-47bb-0310-9956-ffa450edef68
2012-04-08 12:30:00 +00:00
Jake Farrell
b95b0ffa72 THRIFT-1500: d programming language support
Client: D
Patch: David Nadlinger

D program language library and additions



git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1304085 13f79535-47bb-0310-9956-ffa450edef68
2012-03-22 21:49:10 +00:00
Anthony F. Molinaro
f485e2bdb3 THRIFT-1343 - remove internal min function, it seems the same as erlang:min/2
git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1303672 13f79535-47bb-0310-9956-ffa450edef68
2012-03-22 07:04:37 +00:00
Anthony F. Molinaro
e2378f69ef THRIFT-1344 - fix http deprecation warning
git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1303671 13f79535-47bb-0310-9956-ffa450edef68
2012-03-22 07:02:15 +00:00
Anthony F. Molinaro
3bba214c13 THRIFT-1532 - slightly better fix, take into account requiredness when adding default values
git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1303666 13f79535-47bb-0310-9956-ffa450edef68
2012-03-22 06:48:33 +00:00
Anthony F. Molinaro
31835148b2 THRIFT-1532/THRIFT-1475 - fix record generation for erlang
git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1303663 13f79535-47bb-0310-9956-ffa450edef68
2012-03-22 06:23:36 +00:00
Jake Farrell
9c6773aeef THRIFT-1537:TFramedTransport issues
Client: delphi
Patch: Jens Geyer

TFramedTransport fixes for:
 - The offset "off" is ignored, instead always 0 is used fpor reads and writes
 - Trying to write an empty byte array results in range check exceptions



git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1303637 13f79535-47bb-0310-9956-ffa450edef68
2012-03-22 02:40:45 +00:00
Jake Farrell
17515db934 THRIFT-1534:Required fields in the Delphi code generator.
Client:delphi
Patch:Jens Geyer

Required field changes to isset and generated Read-methods.



git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1298265 13f79535-47bb-0310-9956-ffa450edef68
2012-03-08 04:05:58 +00:00
Jake Farrell
ca620e3788 THRIFT-1429:The nonblocking servers is supposed to use TransportFactory to read the data
Client: Java
Patch: Bryan Duxbury 

Enforce the transport factory on the server-read side as well as on the server-write side



git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1296060 13f79535-47bb-0310-9956-ffa450edef68
2012-03-02 05:56:03 +00:00
Jake Farrell
4ca8c3b819 THRIFT-1523: clientTimeout not worked as expected in TServerSocket created by TSSLTransportFactory
Client: java
Patch: Alexey Sviridov

Adds server timeout to SSLTransportFactory



git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1296053 13f79535-47bb-0310-9956-ffa450edef68
2012-03-02 05:22:02 +00:00
Jake Farrell
363f6d414b THRIFT-1128:MAC OS X thrift.h incompatibility with Thrift.h
Client: cpp, c_glib
Patch: Jake Farrell

Moving c_glib headers into $(includedir)/thrift/c_glib to not collide with cpp headers.



git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1296038 13f79535-47bb-0310-9956-ffa450edef68
2012-03-02 02:50:50 +00:00
Bryan Duxbury
68839504c2 THRIFT-1527. java: Generated implementation of tupleReadStruct in unions return null when the setfield is unrecognized
Unrecognized fields will now result in a TProtocolException when reading with the TupleProtocol.

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1295997 13f79535-47bb-0310-9956-ffa450edef68
2012-03-01 23:43:54 +00:00
Bryan Duxbury
38087708b5 THRIFT-1529. java: TupleProtocol can unintentionally include an extra byte in bit vectors when number of optional fields is an integral of 8
This patch harmonizes the math between writeBitSet and readBitSet to eliminate the mismatch in number of bytes calculation, allowing structs to be serialized correctly.

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1295995 13f79535-47bb-0310-9956-ffa450edef68
2012-03-01 23:41:09 +00:00
Ilya Maykov
9be7b38860 THRIFT-481: indentation of ruby classes is off by a few
Compiler: Ruby
Patch: Ilya Maykov

Fixed indentation of gen-rb files by wrapping each file
output stream in a class that keeps track of the indent
level instead of using the global indent.



git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1295423 13f79535-47bb-0310-9956-ffa450edef68
2012-03-01 05:56:39 +00:00
Ilya Maykov
c00011a752 THRIFT-1204: Ruby autogenerated files should require 'thrift' gem
Library: Ruby
Patch: Ilya Maykov
This patch does 2 things:
1) Adds a "require 'thrift'" line to the *_types.rb and *_constants.rb files,
   to be consistent with *_service.rb which was generating the thrift require
   already.
2) Adds a "rubygems" option to the --gen rb compiler target. When this option
   is specified, the compiler will add a "require 'rubygems'" line to the top
   of each gen-rb file. Defaults to false.


git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1294949 13f79535-47bb-0310-9956-ffa450edef68
2012-02-29 02:40:28 +00:00
Bryan Duxbury
f85ad51765 THRIFT-1526. java: Union TupleSchemeFactory returns StandardSchemes
This patch makes it return nice, proper TupleSchemes.

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1294925 13f79535-47bb-0310-9956-ffa450edef68
2012-02-29 01:12:27 +00:00
Ilya Maykov
a81b040ee0 THRIFT-369: sets and maps break equality
Client: ruby
Patch: Ilya Maykov
Added a unit test demonstrating that equality is not broken for structs with nested containers.



git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1294917 13f79535-47bb-0310-9956-ffa450edef68
2012-02-29 00:39:38 +00:00
Roger Meier
35f977c28e THRIFT-1524 TNonBlockingServer does not compile in Visual Studio 2010
Patch: Christian Taedcke

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1294824 13f79535-47bb-0310-9956-ffa450edef68
2012-02-28 20:50:13 +00:00
Roger Meier
8b1adf42e2 THRIFT-1524 TNonBlockingServer does not compile in Visual Studio 2010
Patch: Christian Taedcke

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1294819 13f79535-47bb-0310-9956-ffa450edef68
2012-02-28 20:34:06 +00:00
Roger Meier
5b9693c9fa THRIFT-1388 Delphi XE code-generation test case
Patch: Jens Geyer

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1294798 13f79535-47bb-0310-9956-ffa450edef68
2012-02-28 19:32:55 +00:00
Bryan Duxbury
b2507dbb0c THRIFT-1518. cpp: Generated C++ code only sends the first optional field in the write() function for a struct
There was some incorrect else if logic added to the CPP generated code, which this patch replaces with the proper functionality.

Patch: Thomas Wiggins

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1292508 13f79535-47bb-0310-9956-ffa450edef68
2012-02-22 21:14:10 +00:00
Anthony F. Molinaro
efa2fcf325 THRIFT-1520 : embed version number in .app file for easier integration with rebar
git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1292474 13f79535-47bb-0310-9956-ffa450edef68
2012-02-22 19:44:50 +00:00
Anthony F. Molinaro
cb4e116ea7 THRIFT-1520 : embed version number in .app file for easier integration with rebar
git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1292466 13f79535-47bb-0310-9956-ffa450edef68
2012-02-22 19:33:43 +00:00
Roger Meier
2b828b1a94 THRIFT-1516 TProtocolException in C# should be public
Patch: Stefan Gmeiner

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1292148 13f79535-47bb-0310-9956-ffa450edef68
2012-02-22 07:08:36 +00:00
Roger Meier
2fbde0eff0 THRIFT-1517 TTransport.ReadAll() should set exception type to EndOfFile
Patch: Stefan Gmeiner

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1291039 13f79535-47bb-0310-9956-ffa450edef68
2012-02-19 18:53:08 +00:00
Bryan Duxbury
b405ca6be8 THRIFT-1447. java: NullpointerException in ProcessFunction.class :in 'oneway' method
Patch: Ihor Mysak

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1244272 13f79535-47bb-0310-9956-ffa450edef68
2012-02-14 23:35:22 +00:00