summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* THRIFT-5334 change version of thrift-maven-plugin to 0.14.00.14.0James Z.M. Gao2021-02-262-2/+15
| | | | | Client: Java Patch: James Z.M. Gao
* fix to publish haxelibJens Geyer2021-02-241-1/+1
|
* fix nullptr exception in publishing.gradleJens Geyer2021-02-241-2/+4
|
* THRIFT-5353: Fix import dedup without explicit go namespaceYuxuan 'fishy' Wang2021-02-221-3/+4
| | | | | | | | | | Client: go When a thrift file includes 2 or more other thrift files, and those included thrift files do not have explicit go namespaces defined, the current import dedup logic would wrongly use their empty namespace and skip the second one, while the real import namespace should be inferred from the filename.
* Move ConflictingNamesTest to lib/go/testYuxuan 'fishy' Wang2021-02-226-17/+105
| | | | | | | Client: go Also add missing copyright header for files added in https://github.com/apache/thrift/pull/2307.
* THRIFT-4914: Fix name redeclaration bug in compiled go codeYuxuan 'fishy' Wang2021-02-222-8/+23
| | | | | | | Client: go This fixes the bug reported in https://github.com/apache/thrift/pull/2315#discussion_r577919697.
* THRIFT-5352: Fix construction of Py exceptions with no fieldsNeil Williams2021-02-223-2/+7
| | | | | | | | Client: py When no fields are present, we don't get the special constructor that uses __setattr__ to avoid these checks. So the default constructor sets message normally and triggers the anti-mutation tripwires.
* THRIFT-5347 Deprecate Haskell bindingsJens Geyer2021-02-191-0/+3
| | | | | Client: hs Patch: Jens Geyer
* THRIFT-5350 char is unsigned on non-x86 arches, use signed char to avoid ↵Orion Poplawski2021-02-171-1/+1
| | | | | | | | compiler warning about always true comparisons Patch: Orion Poplawski This closes #2331
* Added nuget package info to csproj, needed to publish the nuget packageJens Geyer2021-02-131-22/+33
|
* Version 0.14.0v0.14.0Jens Geyer2021-02-0521-115/+155
|
* Version 0.14.0Jens Geyer2021-02-041-0/+1
|
* Version 0.14.0Jens Geyer2021-02-042-0/+11
|
* THRIFT-5274: Enforce Java 8 compatibilityChristopher Tubbs2021-02-042-0/+12
| | | | | | | | | | | | | | | | | Client: Java Patch: Christopher Tubbs This closes #2325 * Enforce Java 8 compatibility using the new `--release` flag introduced in JDK9, so that all generated bytecode follows Java 8 strict compatibility, even when building with newer JDK versions (9 or later) (this fixes NoSuchMethodError with ByteBuffer, and other potential incompatibilities in bytecode generation that would make the code unable to run on a Java 8 JRE) * Also strictly enforce the JDK version used to build the project by ensuring it is at least version 1.8, and will fail fast when building the Java libraries if this condition is not met.
* Update README.mdTing Sun2021-02-041-2/+2
| | | | | | Patch: Ting Sun This closes #2317
* Updated CHANGES to reflect Version 0.14.0Jens Geyer2021-02-041-6/+298
|
* THRIFT-5297: Improve TThreadPoolServer Handling of Incoming ConnectionsDavid Mollitor2021-02-042-130/+64
| | | | | | | Client: Java Patch: David Mollitor This closes #2266
* THRIFT-5345: Allow the ServerContext to be Unwrapped Programmaticallybelugabehr2021-02-042-5/+46
| | | | Client: Java Patch: David Mollitor
* THRIFT-5343: TTlsSocketTransport does not resolve IPv4 addresses or validate ↵James Lacey2021-02-041-4/+5
| | | | | | | | | hostnames correctly Client: netstd Patch: James Lacey This closes #2322
* THRIFT-5337 Go set fields write improvementwangtieju2021-02-034-9/+549
| | | | | | | | | | | | | Client: go There is a duplicate elements check for set in writeFields* function, and it compares elements using reflect.DeepEqual which is expensive. It's much faster that generates a *Equals* function for set elements and call it in duplicate elements check, especially for nested struct element. Closes #2307.
* Merge pull request #2320 from BioDataAnalysis/THRIFT-5237Mario Emmenlauer2021-02-032-21/+21
|\ | | | | THRIFT-5344 follow-up fix to THRIFT 5237 Implement MAX_MESSAGE_SIZE and consolidate limits ...
| * THRIFT-5237 Implement MAX_MESSAGE_SIZE and consolidate limits into a ↵Jens Geyer2021-02-032-21/+21
|/ | | | | | | | | TConfiguration class (cpp) Client: cpp Patch: Jens Geyer Fixes an issue introduced with that ticket
* THRIFT-5336 Add possibility to setup connection timeout in TCurlClientvladimir.panivko2021-01-241-0/+26
| | | | | | | Patch: Vladimir Panivko Client: php This closes #2306
* netstd fix IDE warningJens Geyer2021-01-241-1/+1
|
* THRIFT-4914: Make TClient.Call to return the response metaYuxuan 'fishy' Wang2021-01-227-34/+60
| | | | | | | | | Client: go Make a breaking change so that TClient.Call returns the response meta, currently only contains headers but could be expanded in the future, and make a compiler change to compiler generated clients to take advantage of that and provide access to response metadata to users.
* THRIFT-5322: THeaderTransport protocol id fixYuxuan 'fishy' Wang2021-01-222-12/+29
| | | | | | | | | | | | | | Client: go This fixes a bug introduced in https://github.com/apache/thrift/pull/2296, that we mixed the preferred proto id and the detected proto id, which was a bad idea. This change separates them, so when we propagate TConfiguration, we only change the preferred one, which will only be used for new connections, and leave the detected one from existing connections untouched. Also add a test for it.
* THRIFT-5338: Remove lib/go/thrift/go.modYuxuan 'fishy' Wang2021-01-201-3/+0
| | | | | | | | Client: go Having it under a subdirectory has some unexpected consequences, so remove it for now. Another PR will be open up later to add it back to the root directory.
* THRIFT-5338: Raise minimal supported go version to 1.14.14Yuxuan 'fishy' Wang2021-01-2017-65/+71
| | | | | | | | | Client: go - Update Dockerfiles used by travis - Add go.mod file - Modify error handling code to take advantage of errors package updates in go1.13
* THRIFT-5326: Make PrependError more unwrap-ableYuxuan 'fishy' Wang2021-01-193-24/+50
| | | | | | | Client: go As a follow up to https://github.com/apache/thrift/pull/2298, make the error returned by PrependError unwrap-able in certain cases.
* build/cmake/DefinePlatformSpecifc.cmake: Ensure ClangCl on MSVC is ↵Mario Emmenlauer2021-01-181-7/+7
| | | | recognized as MSVC (because it does not handle -Wall too well)
* THRIFT-5326: Expand TException interface in go libraryYuxuan 'fishy' Wang2021-01-1711-38/+162
| | | | | | | | | | | | Client: go Add TExceptionType enum type, and add TExceptionType() TExceptionType function to TException definition. Also make TProtocolException unwrap-able.
* THRIFT-5322: Implement TConfiguration in Go libraryYuxuan 'fishy' Wang2021-01-1718-182/+1234
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Client: go Define TConfiguration following the spec, and also move the following configurations scattered around different TTransport/TProtocol into it: - connect and socket timeouts for TSocket and TSSLSocket - tls config for TSSLSocket - max frame size for TFramedTransport - strict read and strict write for TBinaryProtocol - proto id for THeaderTransport Also add TConfiguration support for the following and their factories: - THeaderTransport and THeaderProtocol - TBinaryProtocol - TCompactProtocol - TFramedTransport - TSocket - TSSLSocket Also define TConfigurationSetter interface for easier TConfiguration propagation between wrapped TTransports/TProtocols , and add implementations to the following for propagation (they don't use anything from TConfiguration themselves): - StreamTransport - TBufferedTransport - TDebugProtocol - TJSONProtocol - TSimpleJSONProtocol - TZlibTransport TConfigurationSetter are not implemented by the factories of the "propagation only" TTransports/TProtocols, if they have a factory. For those use cases, TTransportFactoryConf and TProtocolFactoryConf are provided to wrap a factory with the ability to propagate TConfiguration. Also add simple sanity check for TBinaryProtocol and TCompactProtocol's ReadString and ReadBinary functions. Currently it only report error if the header length is larger than MaxMessageSize configured in TConfiguration, for simplicity.
* try fix appveyor cizeshuai0072021-01-091-1/+1
|
* THRIFT-5331: Py: make THeader subprotocol configurable (#2302)Neil Williams2021-01-042-7/+14
| | | | | Client: py This allows clients to choose which subprotocol (TBinary/TCompact) to frame with headers. The server will already accept either protocol and reply correctly.
* THRIFT-5325: Fix Lua library writeStructEnd() in TCompactProtocolJeffrey Han2020-12-221-1/+1
| | | | | | | Client: lua Patch: Jeffrey Han This closes #2297
* TServerSocket.cpp::isOpen(): Check that a domain socket file already existsMario Emmenlauer2020-12-191-0/+32
|
* THRIFT-5322: Guard against large string/binary lengths in GoYuxuan 'fishy' Wang2020-12-163-42/+184
| | | | | | | | | | | | | Client: go In TBinaryProtocol.ReadString, TBinaryProtocol.ReadBinary, TCompactProtocol.ReadString, and TCompactProtocol.ReadBinary, use safeReadBytes to prevent from large allocation on malformed sizes. $ go test -bench=SafeReadBytes -benchmem BenchmarkSafeReadBytes/normal-12 625057 1789 ns/op 2176 B/op 5 allocs/op BenchmarkSafeReadBytes/max-askedSize-12 545271 2236 ns/op 14464 B/op 7 allocs/op PASS
* THRIFT-5324: Create new req buffer for every http requestYuxuan 'fishy' Wang2020-12-161-9/+5
| | | | | | | | | | | Client: go The fix in https://github.com/apache/thrift/pull/2293 doesn't work for go1.10.8 due to the possibility of data races. This exposes a bigger, underlying issue regarding the ownership of the request buffer in THttpClient between THttpClient itself and the http request it creates. Instead of reset and reuse the same buffer, always give up the ownership of it and create a new buffer after each Flush call.
* build/cmake/DefineOptions.cmake: Fixed the logic of BUILD_SHARED_LIBSMario Emmenlauer2020-12-161-1/+6
|
* THRIFT-5282: Add IPv6 client support to Lua libraryJeffrey Han2020-12-153-16/+78
| | | | | | | Client: lua Patch: Jeffrey Han This closes #2243
* THRIFT-5324: reset http client buffer after flushMorozov2020-12-152-5/+63
| | | | | | | THttpClient did not reset its internal buffer when HTTP client returned an error, leaving the whole or partially read message in the buffer. Now we reset the buffer in defer. Client: go
* Add useful links in Rust client's metadataDirkjan Ochtman2020-12-091-1/+2
| | | | | | | Client: Rust Patch: Dirkjan Ochtman This closes #2291
* THRIFT-5198 Fix certain Visual Studio hints in generated netstd codeJens Geyer2020-12-091-2/+4
| | | | | Client: netstd Patch: Jens Geyer
* THRIFT-5295 makeThread and ThreadFactory extensiblerglarix2020-12-082-8/+15
| | | | | | | | | Client: cpp Patch: Riccardo Ghetta This closes #2260 Signed-off-by: rglarix <rglarix@users.noreply.github.com>
* Fix Missed check in c_glib for frame max message size checkzeshuai0072020-12-052-0/+14
|
* THRIFT-5320: Usage of "Task" as IDL identifier generates uncompileable codeJens Geyer2020-12-046-9/+130
| | | | | | | Client: netstd Patch: Jens Geyer This closes #2289
* Fix Erlang CI: Add gen-erl into test's pathSergey Yelin2020-12-041-1/+9
| | | | | | | Client: erl Patch: Sergey Yelin This closes #2290
* Make ~TException() virtualMario Emmenlauer2020-12-031-1/+1
| | | | | | | Client: cpp Patch: Mario Emmenlauer This closes #2281
* THRIFT-5317 netstd compiler does not escape keywordsJens Geyer2020-12-011-2/+2
| | | | | Client: netstd Patch: Jens Geyer
* Removed symbolic link tutorial/cl/ensure-externals.shMario Emmenlauer2020-11-282-3/+2
|