summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* THRIFT-5345: Allow the ServerContext to be Unwrapped ProgrammaticallyTHRIFT-5345David Mollitor2021-02-032-5/+46
|
* 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
|
* FIX: Log errors in processor via standard logger -> errors to write into ↵Jens Geyer2020-11-211-1/+1
| | | | Console.Error as before
* silenced few warningsJens Geyer2020-11-211-14/+8
| | | | | Client: netstd Patch: Jens Geyer
* Log errors in processor via standard logger #2284Konstantin Pozdniakov2020-11-211-3/+13
| | | | | | | Client: netstd Patch: Konstantin Pozdniakov & Jens Geyer This closes #2284
* upgrade msys try get the softzeshuai0072020-11-202-8/+11
|
* try update the package to download the softwarezeshuai0072020-11-201-1/+2
|
* FixDownLoadErrorInAppveyorCizeshuai0072020-11-202-1/+5
|
* rollbackzeshuai0072020-11-201-1/+1
|
* FixDownLoadErrorInCizeshuai0072020-11-201-1/+1
|
* THRIFT-5288: Move Support for ByteBuffer into TTransportDavid Mollitor2020-11-199-45/+81
| | | | | | | Client: Java Patch: David Mollitor This closes #2254
* Minor whitespace changes for netstdMario Emmenlauer2020-11-192-18/+17
| | | | | | | Patch: Mario Emmenlauer Client: netstd This closes #2282
* Merge pull request #2273 from allengeorge/allen/clippy_cleanAllen George2020-11-1828-180/+146
|\ | | | | THRIFT-5306: Rust code and generated code no longer has clippy warnings (Rust 1.40)
| * THRIFT-5306: Rust code and generated code no longer has clippy warnings ↵Allen George2020-11-1228-180/+146
| | | | | | | | | | | | | | | | (Rust 1.40) Client: rs NOTE: Also properly update the min/max supported Rust versions
* | Grammatical/Typo changesPoojaChandak2020-11-1010-39/+39
| | | | | | | | | | | | Patch: Pooja Chandak This closes #2271
* | THRIFT-5303 Fix missing error handling in using PyUnicode_DecodeUTF8stiga-huang2020-11-011-1/+1
| | | | | | | | | | | | | | Client: py Patch: stiga-huang This closes #2269
* | THRIFT-5302 Add recursive function name uniqueness checkwangliming072020-11-012-4/+50
| | | | | | | | | | | | Patch: wangliming07 <wangliming07@58.com> This closes #2268
* | THRIFT-5290 Adjusting cpp *.cproj options according to LEGAL-538Jens Geyer2020-11-011-1/+1
| |
* | fix warning in c_glib from add max_message_size codezeshuai0072020-10-319-34/+35
| |
* | THRIFT-5304 TWinHTTPClientImpl may incorrectly report that the message size ↵Jens Geyer2020-10-302-1/+3
|/ | | | | | | is reached Client: Delphi Patch: Jens Geyer
* Add an Automatic-Module-Name entryMark Raynsford2020-10-241-0/+1
| | | | | | | | | This adds an Automatic-Module-Name entry to the Thrift jar manifest in order to provide Thrift with a stable module name when used in a JPMS modular context. The name chosen here is "org.apache.thrift", which matches the symbolic name used for OSGi. See: http://branchandbound.net/blog/java/2017/12/automatic-module-name/
* Add DuplicateTo protocol to go's TDebugProtocolYuxuan 'fishy' Wang2020-10-191-2/+149
| | | | | | | | | | | | | | This also comes from the discussion of https://github.com/apache/thrift/pull/1992#issuecomment-705903922. I think TDebugProtocol is a better fit for this feature than creating a new TProtocol implementation. The DuplicateTo field is not added to TDebugProtocolFactory because I don't think it makes sense from the factory setup. In vast majority cases users would need direct access to the underlying TMemoryBuffer to make it useful, which is easier this way than an additional TTransportFactory plus TProtocolFactory to make TDebugProtocolFactory way too complicated.
* THRIFT-5294: Fix panic in go TSimpleJSONProtocolYuxuan 'fishy' Wang2020-10-146-61/+261
| | | | | | | | | | | | | | | | | Client: go In go library's TSimpleJSONProtocol and TJSONProtocol implementations, we use slices as stacks for context info, but didn't do proper boundary check when peeking/popping, result in it might panic with using -1 as slice index in certain cases of calling Write*End without matching Write*Begin before. Refactor the code to properly implement the stack, and return a TProtocolException instead on those cases. Also add unit tests for all protocols. The unit tests shown that TCompactProtocol.[Read|Write]StructEnd would also panic with unmatched Begin calls, so fix them as well.