Commit Graph

1715 Commits

Author SHA1 Message Date
Jens Geyer
494a845dd9 THRIFT-5198 Fix certain Visual Studio hints in generated netstd code
Client: netstd
Patch: Jens Geyer
2020-12-09 22:05:36 +01:00
Jens Geyer
12f6c31c8d THRIFT-5320: Usage of "Task" as IDL identifier generates uncompileable code
Client: netstd
Patch: Jens Geyer

This closes #2289
2020-12-04 21:05:43 +01:00
Jens Geyer
c981cf8891 THRIFT-5317 netstd compiler does not escape keywords
Client: netstd
Patch: Jens Geyer
2020-12-01 22:38:51 +01:00
Jens Geyer
71e972c970 FIX: Log errors in processor via standard logger -> errors to write into Console.Error as before 2020-11-21 15:27:07 +01:00
Konstantin Pozdniakov
1506661e92 Log errors in processor via standard logger #2284
Client: netstd
Patch: Konstantin Pozdniakov & Jens Geyer

This closes #2284
2020-11-21 15:17:33 +01:00
Allen George
6cd5366b5f
Merge pull request #2273 from allengeorge/allen/clippy_clean
THRIFT-5306: Rust code and generated code no longer has clippy warnings (Rust 1.40)
2020-11-18 10:24:41 -05:00
Allen George
7ddbcc07ec
THRIFT-5306: Rust code and generated code no longer has clippy warnings (Rust 1.40)
Client: rs

NOTE: Also properly update the min/max supported Rust versions
2020-11-12 08:47:42 -05:00
wangliming07
196254ba39 THRIFT-5302 Add recursive function name uniqueness check
Patch: wangliming07 <wangliming07@58.com>

This closes #2268
2020-11-01 18:12:34 +01:00
Jens Geyer
dca58db2b0 THRIFT-5290 Adjusting cpp *.cproj options according to LEGAL-538 2020-11-01 18:08:38 +01:00
Jens Geyer
6d570260ca THRIFT-5290 Adjusting cpp *.cproj options according to LEGAL-538
Client: cpp
Patch: Jens Geyer

This closes #2250
2020-10-06 22:17:42 +02:00
Kashirin Alex
330482b02e markdown compiler added
Client: md
Patch: Kashirin Alex

This closes #2241
2020-10-02 21:52:43 +02:00
guanjialin
1d68bfe3c4 Rust compiler generates invalid code when using typedef with union
Client: rs
Patch: guanjialin <1406147701@qq.com>

This closes #2228
2020-10-01 23:11:11 +02:00
Tom Wieczorek
b1a5cd6542 Fix typo 2020-09-30 10:20:19 -07:00
Dedipyaman Das
6fd830d690 THRIFT-4942 Set PHP struct generated field values as private with getters and setters
Client: php
Patch: Das Dedipyaman

This closes #2245

Update field access for getters_setters flag. FFields are private if getters_setters are set, otherwise, public.
2020-09-27 12:04:43 +02:00
Dedipyaman Das
c553155af8 THRIFT-4942 Set PHP struct generated field values as private with getters and setters
Client: php
Patch: Das Dedipyaman

This closes #1859
This closes #2238
2020-09-25 22:04:41 +02:00
Zezeng Wang
119030848c
Merge pull request #2191 from zeshuai007/Implements_TConfig
THRIFT-5237 Implement MAX_MESSAGE_SIZE and consolidate limits into a TConfiguration class(JAVA)
2020-09-18 16:05:44 +08:00
wangyunjian
c77941c60d THRIFT-5134: Fix memory leak when the handler method return FALSE
Client: c_glib
Patch: wangyunjian

This closes #2049

Signed-off-by: wangyunjian <wangyunjian@huawei.com>
2020-09-17 11:34:17 +02:00
zeshuai007
63213c17ad Implements TConfiguration for java 2020-09-16 18:37:40 +08:00
Jonathan Mackenzie
304f50b39f
Fixed double newline at end of generated python service files (#2236)
Generated python files have a blank line at the end of files, except for
service files where there are two blank lines, this change makes these
service files consistent.

This change is trivial and thus does not require a ticket.
2020-09-14 09:11:07 -07:00
longzhiri
03715899d2 THRIFT-5260 Fix the thrift compiler generate problematic lua code for the oneway method
Client: lua
Patch: longzhiri <persistentsnail@gmail.com>

This closes #2212

The oneway method's processor has no need to write the result to client, but it is necessary to return values of each handler's return.
2020-09-12 19:01:36 +02:00
Allen George
b0d14133d5 THRIFT-5158 Update Rust generator and Rust lib,test,tutorial to only support 2018 edition
Client: rs
Patch: Allen George

This closes #2078
2020-09-02 09:03:40 +02:00
Jens Geyer
68c1506715 THRIFT-5261 Support for deprecated methods (via annotation)
Client: Delphi
Patch: Jens Geyer

This closes #2213
2020-08-05 11:55:00 +02:00
Jens Geyer
23c8e52fa0 THRIFT-5254 Member name cannot be Isset (unless it is an "required" member)
Client: netstd
Patch: Jens Geyer

This closes #2203
2020-07-16 08:51:36 +02:00
Jens Geyer
363ee0001f THRIFT-5253 using Result in result name generates wrong IAsync interface
Client: netstd
Patch: Jens Geyer

This closes #2202
2020-07-16 08:51:20 +02:00
wangyunjian
761a869e05 THRIFT-5118: Fix memory leak when the handler method return a exception
Client: c_glib
Patch: wangyunjian

This closes #2035

Signed-off-by: wangyunjian <wangyunjian@huawei.com>
2020-07-01 23:18:03 +02:00
Yuxuan 'fishy' Wang
4db7a0af13 THRIFT-5240: Do connectivity check in Go server
Client: go

In compiler generated TProcessorFunction implementations, add a
goroutine after read the request to do connectivity check on the input
transport. If the transport is no longer open, cancel the context object
passed into the handler implementation.

Also define ErrAbandonRequest error, to help TSimpleServer closing
client connections that's already closed on the other end.
2020-07-01 11:50:44 -07:00
wangyunjian
86cc6f095c THRIFT-5144: Fix memory leak when generate deserialize list element
Client: c_glib
Patch: wangyunjian

This closes #2064

Signed-off-by: wangyunjian <wangyunjian@huawei.com>
2020-06-27 15:25:06 +02:00
Jens Geyer
6e16c2bc54 THRIFT-5238 GetHashCode can throw NullReferenceException
Client: netstd
Patch: Jens Geyer

This closes #2187
2020-06-25 22:00:52 +02:00
Emmanuel Brard
283410126c THRIFT-2087 Python compiler replace non utf-8 char with default
Client: py
Patch: Emmanuel Brard

This closes #2184
2020-06-22 22:50:45 +02:00
Duru Can Celasun
bcae3bb52f
THRIFT-5233: Handle I/O timeouts in go library (#2181)
Client: go

As discussed in the JIRA ticket, this commit changes how we handle I/O
timeouts in the go library.

This is a breaking change that adds context to all Read*, Write*, and
Skip functions to TProtocol, along with the compiler change to support
that, and also adds context to TStandardClient.Recv, TDeserializer,
TStruct, and a few others.

Along with the function signature changes, this commit also implements
context cancellation check in the following TProtocol's ReadMessageBegin
implementations:

- TBinaryProtocol
- TCompactProtocol
- THeaderProtocol

In those ReadMessageBegin implementations, if the passed in context
object has a deadline attached, it will keep retrying the I/O timeout
errors, until the deadline on the context object passed. They won't
retry I/O timeout errors if the passed in context does not have a
deadline attached (still return on the first error).
2020-06-18 22:09:33 +01:00
Jens Geyer
1bed620c5f THRIFT-5235 Add property setter for isset flags
Client: delphi
Patch: Jens Geyer
2020-06-18 11:22:33 +02:00
Phil Price
7db2d0fa46 THRIFT-5234 Fix a number of js/ts generation issues
Client: js/ts
Patch: Phil Price
2020-06-18 00:37:40 +02:00
Jens Geyer
210202e65c THRIFT-5229 Deprecate as3 support
Client: as3
Patch: Jens Geyer

This closes #2182
2020-06-16 22:04:23 +02:00
Yuxuan 'fishy' Wang
e79f764f09 THRIFT-5233: Handle I/O timeouts in go library
Client: go

As discussed in the JIRA ticket, this commit changes how we handle I/O
timeouts in the go library.

This is a breaking change that adds context to all Read*, Write*, and
Skip functions to TProtocol, along with the compiler change to support
that, and also adds context to TStandardClient.Recv, TDeserializer,
TStruct, and a few others.

Along with the function signature changes, this commit also implements
context cancellation check in the following TProtocol's ReadMessageBegin
implementations:

- TBinaryProtocol
- TCompactProtocol
- THeaderProtocol

In those ReadMessageBegin implementations, if the passed in context
object has a deadline attached, it will keep retrying the I/O timeout
errors, until the deadline on the context object passed. They won't
retry I/O timeout errors if the passed in context does not have a
deadline attached (still return on the first error).
2020-06-15 13:28:38 -07:00
zeshuai007
26681fbdb7 THRIFT-5225: Use nullptr instead of NULL
Patch: Zezeng Wang

This closes #2168
2020-06-14 14:17:11 +02:00
Stanislav Markevic
3f78c70bbb THRIFT-5082 Add a Class reference for PHP enum $_TSPEC
Client: php
Patch: Stanislav Markevic

This closes #2000
2020-06-09 23:23:02 +02:00
zeshuai007
0acf23b7cf THRIFT-5200 Thrift compiler will generate incorrect code when add 'cob_style' option
Client: cpp
Patch: Zezeng Wang

This closes #2144
2020-06-04 21:43:30 +02:00
Jens Geyer
b559359b0b THRIFT-5220 DeepCopy() extension methods not generated when the IDL contains no service
Client: netstd
Patch: Jens Geyer
2020-05-28 21:32:34 +02:00
Jens Geyer
affea7bee4 THRIFT-5216 generate DeepCopy methods
Client: netstd
Patch: Jens Geyer

This closes #2155
2020-05-27 01:32:14 +02:00
Jano Svitok
4fd001c878 THRIFT-5138 Swift keywords may be used as identifiers if escaped
Client: Swift
Patch: Jano Svitok

This closes #2059
2020-05-20 00:48:35 +02:00
Jano Svitok
a082592d43 THRIFT-5128 Swift TFramedTransport does not work using present code
Client: Swift
Patch: Jano Svitok

This closes #2047
2020-05-20 00:39:49 +02:00
zeshuai007
53239655b7 THRIFT-3622 Fix deprecated uses of std::auto_ptr
Client: cpp
Patch: zeshuai007 <51382517@qq.com>

This closes #2135
2020-05-15 22:22:48 +02:00
Jens Geyer
abc2ec6096 THRIFT-5198 Fix certain Visual Studio hints in generated netstd code
Client: netstd
Patch: Jens Geyer

This closes #2133
2020-05-08 09:14:26 +02:00
Zezeng Wang
371d92f159
THRIFT-5179: Fix generated code for struct's named "a" or "b"
Client: cpp
2020-04-28 07:23:15 +01:00
penenin
52655cec79
THRIFT-5159: Fix runtime ReferenceError in generated code
Client: nodejs
2020-04-27 16:19:55 +01:00
Mario Emmenlauer
5ef8e3ec2a
Remove boost from compiler test, delete unused bincat.sh 2020-04-24 15:34:02 +01:00
Alexander Edge
b4711a6178
Swift 5.1 support
Use stdlib Result instead of TAsyncResult

Fix: deprecations for `withUnsafeBytes`

Bump CI job Xcode version

Hash (into)

Co-authored-by: Sophie Lambrakis <SLambrakis@users.noreply.github.com>
Co-authored-by: Alexander Edge <alex@alexedge.co.uk>
2020-04-24 14:43:03 +01:00
Mario Emmenlauer
93171d2482 THRIFT-5109 Misc Cmake build improvements
Patch: Mario Emmenlauer

This closes #2094
2020-04-22 21:17:33 +02:00
zeshuai007
57c2507208 THRIFT-5168 Useless generated code when .thrift file only has service type
Client: cpp
Patch: zeshuai007 <51382517@qq.com>

This closes #2095
2020-04-21 23:29:14 +02:00
gzuykov
f44b6ee8db Modify autogenerated message for Go to standard to match the expectations of some tools
Client: Go
Patch: gzuykov

This closes #2096
2020-04-09 21:41:57 +02:00