summaryrefslogtreecommitdiff
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
* THRIFT-5164: Add middleware framework for Go clientsAndrew Boyle2020-04-304-10/+149
| | | | | | | | | | | This commit adds a simple middleware framework for Go clients. It provides: * A `ClientMiddleware` function interface used to define the actual middleware * `WrapClient`, the function that you use to wrap a `TClient` in a list of middleware * A helper `WrappedTClient` struct to help with developing middleware Client: go
* Add file and memory buffer tests for PythonZezeng Wang2020-04-283-0/+73
| | | Client: py
* THRIFT-5188 Occasional ERROR_INSUFFICIENT_BUFFER at WinHttpQueryHeaders()Jens Geyer2020-04-271-4/+24
| | | | | Client: Delphi Patch: Jens Geyer
* THRIFT-5164: Add middleware framework for Go serversAndrew Boyle2020-04-277-1/+433
| | | | | | | | | | | | | | | This commit adds a simple middleware framework for Go servers. It provides: * A `ProcessorMiddleware` function interface used to define the actual middleware * `WrapProcessor`, the function that you use to wrap a `TProcessor` in a list of middleware * A helper `WrappedTProcessorFunction` struct to help with developing middleware This is a breaking change for any custom implementations of the `TProcessor` interface, but does not effect the code generated by compiling Thrift files. It adds two functions to the interface that are a part of the generated `TProcessor` code, but were not defined in the interface explicitly.
* THRIFT-5184: Fix header check for WebSocket connectionspenenin2020-04-271-1/+1
| | | | | When establishing a WebSocket connection, Firefox sends Connection: keep-alive, Upgrade instead of just Connection: Upgrade. Check to see if Upgrade is in the header instead of checking to see if it is the entire header value. Client: d
* Supplement TBinaryprotocol module testcaseZezeng Wang2020-04-273-0/+267
| | | Client: py
* THRIFT-5150: Fix compilation with Swift 5.2Jano Svitok2020-04-272-1/+2
| | | | | | - (OS X and Linux) type 'TSet<Element>' does not conform to protocol 'Collection' - (Linux only) kCFSocketCloseOnInvalidate has Int type Client: swift
* supplementary testcase for TJSONProtocolzeshuai0072020-04-261-0/+65
| | | | | | | Client: py Patch: zeshuai007 <51382517@qq.com> This closes #2113
* THRIFT-5177: getaddrinfo() should not be used for Unix socketsDmitry Maluka2020-04-261-14/+16
| | | | | | | Client: cpp Patch: Dmitry Maluka This closes #2102
* Allow wrapping TTransportFactory into a TZlibTransportFactoryMario Emmenlauer2020-04-242-3/+22
| | | Client: cpp
* Rework NodeJS / Javascript consistency Mario Emmenlauer2020-04-248-29/+33
| | | | | | | Client: js * Re-worked consistency of browser.js and index.js in lib/nodejs * Wrap non-standard V8 method 'Error.captureStackTrace()'
* Swift 5.1 supportAlexander Edge2020-04-2413-67/+24
| | | | | | | | | | | | 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>
* TOutput: Add further parsers for errno-to-string conversion for WindowsMario Emmenlauer2020-04-241-9/+25
|
* Add isOpen() to TServerTransportMario Emmenlauer2020-04-247-1/+24
| | | Client: cpp
* THRIFT-5183: Don't try to read next frame in THeaderTransport.ReadYuxuan 'fishy' Wang2020-04-242-4/+62
| | | | | | | Trying to read the next frame will likely cause the Read call blocking indefinitely and eventually lead to timeout. See the JIRA ticket for more context. Client: go
* THRIFT-5171: Fix maven-ant-tasks to use HTTPS instead of HTTPKengo Seki2020-04-232-0/+2
| | | Client: js, json
* THRIFT-5109 Misc Cmake build improvementsMario Emmenlauer2020-04-224-0/+98
| | | | | | Patch: Mario Emmenlauer This closes #2094
* lib/js/Gruntfile.js: Generalized to add some level of Windows CMD support ↵Mario Emmenlauer2020-04-221-14/+19
| | | | (not complete yet)
* THRIFT-5178: Add constructor with default host to THttpClientMario Emmenlauer2020-04-212-1/+23
| | | | | | | | | Client: cpp Patch: Mario Emmenlauer This closes #2105 The new default host is localhost. Also, the new default path is /service. This works around issue THRIFT-5180 where a path is required for the THttpTransport in Unix domain sockets.
* THRIFT-5168 Useless generated code when .thrift file only has service typezeshuai0072020-04-212-7/+2
| | | | | | | Client: cpp Patch: zeshuai007 <51382517@qq.com> This closes #2095
* Removed a duplicate line + Fixed typo in the comments of ↵gaganso2020-04-202-2/+1
| | | | | | | | | lib/cpp/src/thrift/concurrency/Thread.h Client: cpp Patch: gaganso <gagan.somashekar@gmail.com> This closes #2104
* Update libthrift.vcxproj and libthrift.vcxproj.filters: remove ↵zeshuai0072020-04-202-20/+0
| | | | | | | | | xxxThreadFactory.h file which has been removed Client: cpp Patch: zeshuai007 <51382517@qq.com> This closes #2100
* Add UnsetHeader to go libraryYuxuan 'fishy' Wang2020-04-172-1/+21
| | | | | | | | | | | | | | | Client: go We already have SetHeader and GetHeader helper functions in the go library to deal with THeader injected into the context object. But we didn't provide a way to unset/delete a key from the context object. This will be useful with the TSimpleServer.SetForwardHeaders API. In the scenario that a thrift server want to auto forward certain headers to other upstream thrift servers as the fallback, but during the handling of the request might decide to remove some of the auto forward headers. This is also achievable through mutate the write header list, but since that's a list, finding one key from the list and remove it is much more hassle.
* THRIFT-5152: introduce connect timeout and socket timeoutlvqian2020-04-134-18/+25
| | | | | | | Client: Go Patch: Qian Lv This closes #2071
* THRIFT-5165: THttpClient saves session cookie.Joao Antonio2020-04-131-0/+4
| | | | | | | Client: py Patch: Joao Antonio This closes #2086
* THRIFT-5166: Add support for using WebSockets as a server transport.James Lacey2020-04-091-0/+388
| | | | | | | Client: d Patch: James Lacey This closes #2087
* THRIFT-5172 NetStd OutOfMemoryExceptioneric.bleher@software-managed.com2020-04-091-1/+1
| | | | | | | Client: netstd Patch: Eric Bleher This closes #2093
* THRIFT-5047:fix openssl switchcyy2020-04-061-1/+7
| | | | | | | Client: cpp Patch: Yuanyuan Chen This closes #1962
* THRIFT-5156: Fix library compilation on Windows and compiler warningsJames Lacey2020-04-047-18/+31
| | | | | | | Client: d Patch: James Lacey This closes #2075
* THRIFT-5076 Improve CMake OpenSSL usageKevin Wojniak2020-04-031-3/+2
| | | | | | | Client: c_glib Patch: Kevin Wojniak This closes #1994
* THRIFT-5163 adds Q to exports for browserifyMárton Csordás2020-04-031-0/+1
| | | | | | | Client: NodeJS Patch: Márton Csordás This closes #2061
* THRIFT-3356: handle undefined captureStackTraceMárton Csordás2020-04-036-8/+32
| | | | | | | Client: nodejs Patch: Márton Csordás This closes #2082
* Add testcase for other condition judgment in the readJSONDouble functionzeshuai0072020-03-311-1/+10
| | | | | | | Client: cpp Patch: zeshuai007 <51382517@qq.com> This closes #2080
* THRIFT-4963: Fix deadlock in ThreadManager::Worker::runKanishth Karthik2020-03-291-0/+2
| | | | | | | Client: cpp Patch: Kanishth Karthi This closes #2070
* THRIFT-5130 Use Apcu instead of APCpanivko2020-03-274-30/+30
| | | | | | | Client: PHP Patch: Vladimir Panivko This closes #2041
* THRIFT-5146 Align Delphi to the test suite arguments rules (its ↵Jens Geyer2020-03-222-131/+125
| | | | | | | "--switch=value", not "--switch value") Client: Delphi Patch: Jens Geyer
* THRIFT-5145 Streamline --pipe and --named-pipe options in the code baseJens Geyer2020-03-222-7/+7
| | | | | | | Client: Test suite Patch: Jens Geyer This closes #2065
* Fix some compile warningszeshuai0072020-03-222-6/+10
| | | | | | | Client: c_glib Patch: zeshuai007 <51382517@qq.com> This closes #2063
* THRIFT-5133: Use ArrayPool when reading and writing strings to improve ↵Mikel Blanchard2020-03-1911-13/+209
| | | | | | | | | performance Client: netstd Patch: Mikel Blanchard This closes #2057
* Fix several warnings in c_glib lib and incorrect error messageKevin Wojniak2020-03-152-6/+2
| | | | | | | CLient: c_glib Patch: Kevin Wojniak This closes #1830
* THRIFT-5121: Fix inverted logic when testing message typeAlexander Edge2020-03-142-11/+29
| | | | | | | Client: Swift Patch: Alexander Edge This closes #2036
* THRIFT-5111: Upgrade rust to 1.36.0Jano Svitok2020-03-071-1/+8
| | | | | | | | | | | | | | | | | | Client: Rust Patch: Jano Svitok This closes #2050 Also contains portions of THRIFT-4547: Upgrade Swift in docker to 5.1.4 Client: Swift Patch: Jano Svitok Linux version 4.2.0 does not have FileHandle.acceptConnectionInBackgroundAndNotify() implemented. We need at least 5.1 for TSocketServer to run in docker. In the meantime, URLRequest was moved to FoundationNetworking. To keep compatibility with previous versions, conditional import is used.
* THRIFT-5131: Require >= 1.1.4 of integer-encoding dependencyNik Clayton2020-03-072-1/+26
| | | | | | | | | | | | | | Client: Rust Patch: Nik Clayton This closes #2045 Versions 1.1.0 - 1.1.3 of the integer-encoding crate had a bug where numbers larger than 0x4000_0000_0000_0000 would cause a panic during decoding. Add a test to be sure that numbers up to i64::maxvalue() encode and decode successfully.
* CI broken, reverting following PRsJens Geyer2020-02-284-91/+0
| | | | | | reverted https://github.com/apache/thrift/pull/2025 reverted https://github.com/apache/thrift/pull/2026 Reverted https://github.com/apache/thrift/pull/2021
* THRIFT-4982 Remove deprecated C# bindings from the code baseJens Geyer2020-02-28101-11938/+1
| | | | | | | Client: csharp Patch: Jens Geyer This closes #2027
* THRIFT-5123 add possibility to query HTTP status code with WinHTTPJens Geyer2020-02-271-4/+50
| | | | | Client: delphi Patch: Jens Geyer
* make dist fails due to CMakeList.txt files missing from the generated tarballJens Geyer2020-02-262-0/+2
|
* THRIFT-5115 PR #2022 Updated gradle to 6.2 broke CIMario Emmenlauer2020-02-253-3/+19
| | | | | | | | | Client: java Patch: Mario Emmenlauer This closes #2031 Downgraded gradle to 5.6.4 after problems with 6.x in AS3
* THRIFT-5084: Multiplexed processor in Swift – explicit return statementsAlexander Edge2020-02-242-15/+15
| | | | | | | Client: swift Patch: Alexander Edge This closes #2028
* THRIFT-5109 Misc Cmake build improvementsMario Emmenlauer2020-02-231-5/+6
| | | | | | | | | | | | Patch: Mario Emmenlauer This closes #2017 This closes #2018 This closes #2019 - build/cmake/DefineInstallationPaths.cmake: fixed the library path - build/cmake/ThriftMacros.cmake: do not enforce debug suffix 'd' - lib/java/CMakeLists.txt: allow to override JAVA_INSTALL_DIR