Commit Graph

5786 Commits

Author SHA1 Message Date
James E. King III
3131fe975c THRIFT-4904: Fix python unit test errors and exception escapes
Due to the way SSL layers on top of sockets, it was possible
to complete a connection and then have the server close it.
This would happen if the client is not checking certificates
but the server is.  The TSSLSocket unit test was enhanced to
do a read and a write as well as just connecting to ensure a
more complete test.

The TSocket read() and write() calls were leaking OSError,
socker.error, and ssl.Error exceptions.  These cases are now
wrapped into a TTransportException of the appropriate type,
and the original exception is added as an argument named inner.
2019-07-07 12:16:52 -04:00
James E. King III
93ff9b0053 Update language levels, fix erlang and rust in CI
- Include rebar3 in docker image so erlang builds in CI
- Include the correct path in docker image so rust builds in CI
- Updated common lisp (sbcl) to 1.5.3 in docker image
- Updated dlang to 2.087.0 in docker image
- Updated dart to 2.0.0 in xenial docker image
- Updated dart to 2.4.0 in bionic docker image
- Updated erlang to 22.0 in docker image
- Updated openjdk to 11.0.3 in docker image
- Updated node.js to 10.16 in docker image
- Updated rust to 1.34.0 in xenial docker image
- Updated rust to 1.35.0 in bionic docker image

THRIFT-4905: Disable hanging experimental dlang async ssl test
2019-07-07 12:16:52 -04:00
Shaoyu Zhang
1a2dee60b4 Use THRIFT_WRITE instead of ::write in TFileTransport.cpp 2019-07-01 20:15:03 -04:00
soroshsabz
6a61dfabbf THRIFT-4830: Add to_string helper function for cpp generator (#1765) 2019-07-01 20:13:54 -04:00
Gonzalo Aguilar Delgado
9b49c96a6a THRIFT-4842 - Fix memory leak on set property c_glib (#1773) 2019-07-01 20:13:09 -04:00
Kevin Wojniak
6c847d2d02 THRIFT-4878 - [c_glib] add unix domain socket support to ThriftSocket (#1807) 2019-07-01 20:11:56 -04:00
Phil Price
35cda2fa85 Fix typescript generation for multi include cases
- Ensure imports are generated for includes in *_types.d.ts files
- Ensure generated type names for struct fields and function arguments
   are prefixed with import name if the type is not defined within the same
   program.
2019-07-01 14:09:28 -04:00
Kevin Wojniak
a392566e9b THRIFT-4896 - prevent cpp and c_glib include directories from leaking into other targets (#1821)
- enable the automake `nostdinc` option
- fix up include paths
2019-07-01 14:07:45 -04:00
James Z.M. Gao
3711d90810 THRIFT-4897 generate test resource for thrift-maven-plugin
Client: Java
Patch: James Z.M. Gao <gaozhiming@360.cn>

This closes #1822

generate SharedIdl.jar for passing the test case for thrift-maven-plugin
use antrun plugin to generate test jar
2019-07-01 19:39:52 +02:00
Jens Geyer
a304b7c3a0 THRIFT-4769 Change NuGet package to use netstd artifact
Patch: Jens Geyer

This closes #1825

Although netcore is superseded by netstd and thus omitted from the package, it still contains "regular" C# binaries. These are deprecated and will be removed with the next regular release after 0.13
2019-07-01 19:22:42 +02:00
Allen George
c2c1e1d709 Change docker builds to include specific version of Rust (1.35.0) 2019-07-01 11:44:58 -04:00
jose andres
5338d99176 bug fixed
Use TTcpChannel instead of TTcpTransport
2019-07-01 11:40:42 -04:00
jose andres
0124c4d66b minor change
upgrade to thrift 0.12.0

[THRIFT-4529] - Rust enum variants are now camel-cased instead of uppercased to conform to Rust naming conventions
2019-07-01 11:40:42 -04:00
John Boiles
d9019fc5a4 THRIFT-4797: Fix import collisions in Go
Client: go

This closes #1811.
2019-06-29 07:07:10 +01:00
Jens Geyer
bd1a273ab7 THRIFT-4898 Pipe write operations across a network are limited to 65,535 bytes per write.
Client: netstd
Patch: Jens Geyer

This closes #1823
2019-06-27 21:30:25 +02:00
Kevin Wojniak
c5068e297c Fix some typos in ThriftTest.thrift
[ci skip]
2019-06-27 12:28:19 -04:00
Jens Geyer
62238d1a6c THRIFT-4886 More detailed error information for WinHTTP transport
Client: Delphi
Patch: Jens Geyer
2019-06-26 20:53:22 +02:00
James E. King III
03bf848269
THRIFT-4878: Document c_glib domain transport change in matrix [skip ci] 2019-06-23 08:47:56 -04:00
James E. King III
d886ab291d
Add a PR checklist item for skipping CI [skip ci] 2019-06-23 08:40:36 -04:00
Kevin Wojniak
99ae730c5d Fix environment spelling 2019-06-23 08:37:12 -04:00
Jens Geyer
1e808af7b3 THRIFT-4893 Enable automatic content encoding handling for gzip,deflate in the HTTP client
Client: netstd
Patch: Jens Geyer

This closes #1818
2019-06-22 10:27:57 +02:00
Jens Geyer
19505c3de3 THRIFT-4894 Enable automatic content encoding handling for gzip,deflate in the WinHTTP client
Client: Delphi
Patch: Jens Geyer
2019-06-22 01:03:55 +02:00
antbofh
95870f06cd THRIFT-4892: fixed data type conflict with simultaneous usage of bytes and str (#1804) 2019-06-21 15:33:55 -04:00
James E. King III
a85d532bb3 Fix mingw appveyor build issue [skip travis] 2019-06-21 11:21:40 -04:00
David Carlier
29ecfaba53 CPP generator test, catching exceptions by ref instead. 2019-06-21 07:30:13 -04:00
Mustafa Senol Cosar
3f0d444791 Implement episodic compilation for js code generation 2019-06-21 06:38:32 -04:00
Jens Geyer
96c6113dda THRIFT-4891 Align HTTP test client with all other variants
Client: netstd
Patch: Jens Geyer

This closes #1816
2019-06-21 01:48:31 +02:00
Jens Geyer
433a649a36 THRIFT-4886 More detailed error information for WinHTTP transport
Client: Delphi
Patch: Jens Geyer
2019-06-19 23:32:19 +02:00
Yuxuan 'fishy' Wang
4d46c11244 THRIFT-4612: THeader support in go library
Client: go

Implement THeaderTransport and THeaderProtocol, with support of:

* clients:
  - headers
  - framedBinary
  - unframedBinary
  - framedCompact
  - unframedCompact
* transforms:
  - none
  - zlib
* info types:
  - key_value
* wrapped protocols:
  - TBinary
  - TCompact

The support list is in general on par of the THeader implementation in
the python library.

The cross-test passes, except ones related to cpp/nodejs http transport,
which were also failing for non-theader protocols.

This change also fixes two bugs:

1. A small issue in test/go/src/bin/testserver/main.go
2. A bug in TFrameTransport go implementation
2019-06-19 22:52:24 +02:00
Kyle Smith
823474ec89 THRIFT-4848: Add ability to set Content-Type,Accept headers in HTTP client
Client: netstd
Patch: Kyle Smith

This closes #1801
2019-06-14 22:42:15 +02:00
John Boiles
5eef01f231 THRIFT-4868: Fix Go compilation for optional sets with default values (#1802)
Client: go
2019-06-13 19:49:45 +02:00
Jens Geyer
19fdca82c2 THRIFT-4886 More detailed error information for WinHTTP transport
Client: Delphi
Patch: Jens Geyer
2019-06-12 22:09:58 +02:00
Jens Geyer
b342bd9a61 THRIFT-4884 Add serialisation performance test for Delphi
Client: Delphi
Patch: Jens Geyer
2019-06-07 22:31:26 +02:00
Jens Geyer
83ff753777 THRIFT-4882 Autodetect proxy settings with WinHTTP
Client: Delphi
Patch: Jens Geyer
2019-06-07 22:26:55 +02:00
Jens Geyer
47f6317336 THRIFT-4881 Allow TLS1.1 and TLS1.2 even when not configured as systemwide default
Client: Delphi
Patch: Jens Geyer
2019-06-07 22:26:53 +02:00
Jens Geyer
936944384f THRIFT-4879 general performance improvements for netstd library
Client: netstd
Patch: Jens Geyer

Removing obsolete (and finally incorrect) assertion.
2019-06-05 22:03:14 +02:00
Jens Geyer
5a17b13ebc THRIFT-4879 general performance improvements for netstd library
Client: netstd
Patch: Jens Geyer

This closes #1808
2019-06-04 22:31:58 +02:00
James E. King III
057bebc1c3 Merge branch '0.12.1' 2019-05-26 14:59:04 -04:00
timestee
370d7513f0 spelling mistake, perhaps (#1803) [ci skip 2019-05-20 07:20:42 -04:00
Henrik Tudborg
c035eca3c6 hotfix: clear the offline queue when once written 2019-05-14 14:26:48 -04:00
Jeremy Mikkola
79c2337705 THRIFT-4845: Stop ignoring small timeouts
Client: php

CURLOPT_TIMEOUT requires a long [0], so it seems that small values
like 0.2 are being rounded to 0, resulting in a lack of any timeout.

This change uses CURLOPT_TIMEOUT_MS, which the PHP documentation
says was "added in cURL 7.16.2. Available since PHP 5.2.3."

[0] https://curl.haxx.se/libcurl/c/CURLOPT_TIMEOUT.html
2019-05-14 06:15:48 -04:00
James E. King III
b261f3c0f1 THRIFT-4857: [java] added a unit test for TField 2019-05-13 16:53:57 -04:00
Garret Wilson
6b6a8279ab THRIFT-4857: Made Java TField class hash code consistent with equals.
Client: java
2019-05-13 16:53:57 -04:00
James E. King III
6ba58e9a66
Update README [ci skip] 2019-05-13 07:21:21 -04:00
Sergey Yelin
4ffe76351e THRIFT-4583: Switch to rebar3
Client: erl
2019-05-13 06:52:19 -04:00
Aaron Goldman
b808a11559 Make Field definition follow Literal definition
I think this is a violation of your Literal syntax.

Could you explain what i'm missing in the language definition?
Is this supposed to be a litteral '='?

Literal         ::=  ('"' [^"]* '"') | ("'" [^']* "'")
2019-05-12 07:22:05 -04:00
Sergey Elin
ce32ed7012 Report error for abnormal server termination only
Client: erl
2019-05-12 07:08:07 -04:00
Sergey Elin
f3d4d51d42 Add missing autogenerated comment to header files
Client: erl
2019-05-12 07:07:28 -04:00
Jens Geyer
a5dbb011fd THRIFT-4864 CI fails at netstd
Client: netstd
Patch: Jens Geyer

This closes #1798
2019-05-11 18:46:48 +02:00
James E. King III
522f873e1e Update and fix js dependencies 2019-05-10 18:47:27 -04:00