Commit Graph

6369 Commits

Author SHA1 Message Date
Mario Emmenlauer
bdb54bc1c9 Use modern OpenSSL cmake syntax (if available), and larger cmake cleanup 2021-09-02 08:54:42 +02:00
Mario Emmenlauer
b8069cbe9c
Merge pull request #2449 from BioDataAnalysis/bda_unify_nonblockingserversocket
Updated TNonblockingServerSocket to better match TServerSocket
2021-09-02 08:51:06 +02:00
Mario Emmenlauer
dd0bf89ca3 Updated TNonblockingServerSocket to better match TServerSocket 2021-09-01 15:30:35 +02:00
Mario Emmenlauer
0f5aebb52c
Merge pull request #2327 from BioDataAnalysis/bda_add_domain_sockets_for_windows
THRIFT-5187: Added Win32 support for domain sockets (AF_UNIX)
2021-09-01 11:04:55 +02:00
Mario Emmenlauer
18bf591535 Added support for Unix domain sockets on Windows 2021-08-31 14:53:14 +02:00
Mario Emmenlauer
5b25b99cda
Merge pull request #2447 from BioDataAnalysis/bda_use_cmake_config_on_msvc
Use the cmake-generated thrift config also on MSVC
2021-08-31 14:52:40 +02:00
Mario Emmenlauer
5a64c71017 Use the cmake-generated thrift config also on MSVC 2021-08-30 11:41:54 +02:00
Mario Emmenlauer
ee65215143 TNonblockingServer.cpp: Replace deprecated bzero with memset (more portable) 2021-08-30 11:41:54 +02:00
Mario Emmenlauer
6762a907c1
Merge pull request #2448 from BioDataAnalysis/bda_fix_dotnet_docker
build/docker/*/Dockerfile: Added dotnet additional dependencies
2021-08-30 11:40:33 +02:00
Mario Emmenlauer
96ed727098 build/docker/*/Dockerfile: Added dotnet additional dependencies 2021-08-30 11:25:55 +02:00
Yuxuan 'fishy' Wang
17373a3f35 go: Fix things staticcheck complains about
Client: go

Staticcheck is the recommended replacement of the frozen and deprecated
official golint linter [1].

Fix the things it complained about (or add lint:ignore directive) in:

- lib/go/thrift
- lib/go/test/tests
- tutorial/go/src
- test/go/src
- compiler generated code

The majority of the fixes are in the following categories:

- Use of deprecated function (mainly the TConfiguration related ones)
- Redundant break in switch cases
- Unused and unexported variables/fields/functions

Also in the same spirit as fb539ae, remove the error return from
NewTSSLSocket as it can never be non-nil.

This change will be cherry-picked into 0.15.0 branch after merged.

[1]: https://groups.google.com/g/golang-nuts/c/rCP70Aq_tBc
2021-08-27 09:28:08 -07:00
Mario Emmenlauer
d53f056427
Merge pull request #2445 from BioDataAnalysis/bda_add_dotnet_docs
Added dotnet documentation
2021-08-25 19:13:51 +02:00
Mario Emmenlauer
70ef984655 lib/netstd/Thrift/Thrift.csproj: Generate documentation for .NET 2021-08-25 11:56:06 +02:00
Mario Emmenlauer
db997bde47 Minor whitespace cleanup in csproj files 2021-08-25 11:55:05 +02:00
Triton
ace8613f0f Fix specification to match implementation
As stated in THRIFT-5300, the specification was wrong and type identifiers for collections DO match the field types (except for the obvious boolean type which is then represented as only `BOOL_TRUE`).

Also replaced `BYTE` name with `I8` as the former is documented as a compatibility name only (especially since some languages have an unsigned byte type).

[skip ci] Trivial documentation changes only.
2021-08-22 19:00:10 +02:00
Jorge C. Leitao
77afa017ce Made server optional. 2021-08-22 18:46:08 +02:00
kpandit
db7ad5b1a1 fix javadoc warnings 2021-08-22 18:43:11 +02:00
xiexiaoqun
72f04b4e2c Change StringBuffer to StringBuilder for more efficiency 2021-08-22 18:38:49 +02:00
Yuxuan 'fishy' Wang
a265236feb THRIFT-5447: Update supported Go versions
Client: go

Update go versions used in travis to 1.16.7 and 1.17, update
LANGUAGES.md, and update go's README to clarify on support policy.

This change will be cherry-picked into 0.15.0 branch after merged.
2021-08-19 14:09:24 -07:00
Mario Emmenlauer
a142709bae
Merge pull request #2437 from BioDataAnalysis/bda_several_improvements
Several smaller improvements in the C++ code and build
2021-08-13 14:48:54 +02:00
Mario Emmenlauer
a484b5c7e4 Added new method isUnixDomainSocket() to check type of socket 2021-08-13 10:14:52 +02:00
Mario Emmenlauer
29b083e9f8 Include signal.h depending on HAVE_SIGNAL_H, not depending on __linux__ 2021-08-13 10:14:22 +02:00
Mario Emmenlauer
04aabcb808 TCompactProtocol.tcc: add missing include cstdlib 2021-08-13 10:14:01 +02:00
Mario Emmenlauer
464339dbb5 build/cmake/BoostMacros.cmake: Removed 'Boost_NO_BOOST_CMAKE' and minor cleanup 2021-08-13 10:14:01 +02:00
Mario Emmenlauer
b01368164f lib/cpp/test/CMakeLists.txt: Added missing boost::chrono 2021-08-13 10:14:01 +02:00
Mario Emmenlauer
654968a24b build/cmake/DefineOptions.cmake: Minor improvement in logging for 'WITH_MT' 2021-08-13 10:14:01 +02:00
Mario Emmenlauer
b31377f0a1 TSocket.cpp: Print THRIFT_EAGAIN (timed out) to global error 2021-08-13 10:14:01 +02:00
Mario Emmenlauer
431368a368 lib/cpp/src/thrift/transport/TBufferTransports.h: Minor whitespace changes 2021-08-13 10:14:01 +02:00
Mario Emmenlauer
82504b395e
Merge pull request #2436 from BioDataAnalysis/bda_disable_one_test
lib/cpp/test/ToStringTest.cpp: Disabled locale-based tests on Windows to satisfy AppVeyor
2021-08-13 10:01:21 +02:00
Mario Emmenlauer
e664ac4903 lib/cpp/test/ToStringTest.cpp: Disabled locale-based tests on Windows 2021-08-12 22:26:43 +02:00
Mario Emmenlauer
4cf1e35733
Merge pull request #2429 from BioDataAnalysis/bda_fix_win_build
Fix a number of problems in the Windows build on AppVeyor
2021-08-11 21:39:17 +02:00
Yuxuan 'fishy' Wang
fb539ae412 THRIFT-5453: Defer DNS from NewTSocketConf to TSocket.Open
Client: go

We used to do DNS lookups in NewTSocketConf, without any timeout checks.
Stop doing that and do DNS lookups in TSocket.Open instead, which
already checks for ConnectTimeout set in TConfiguration.

Also remove the error return from NewTSocketConf.
2021-08-11 11:08:49 -07:00
Mario Emmenlauer
6dfaf9c6d8 appveyor.yml: Disabled 'fast_finish' 2021-08-11 19:30:25 +02:00
Mario Emmenlauer
fcb07b18c8 appveyor.yml: Disabled broken Cygwin build 2021-08-11 19:29:38 +02:00
Mario Emmenlauer
ffc7bb9f59 Merged AppVeyor scripts for 'install', 'build' and 'test' into one 2021-08-11 19:28:09 +02:00
Mario Emmenlauer
c371e4ad35 Separate the cmake 'build' and 'install' targets 2021-08-11 19:27:56 +02:00
Mario Emmenlauer
22bb550f49 Removed the 'shortened' profile names in favor of descriptive profile class names 2021-08-11 19:27:24 +02:00
Mario Emmenlauer
ce64880dd8 AppVeyor: larger updates in build configuration and documentation 2021-08-11 19:25:54 +02:00
Mario Emmenlauer
166786eea8 Updated MSYS2 install for current AppVeyor and upstream MSYS2 2021-08-11 19:25:54 +02:00
Mario Emmenlauer
9e3ac856ee Renamed Windows build files from cl-prefix to win-prefix 2021-08-11 19:25:54 +02:00
Mario Emmenlauer
e14ac85d9e Larger whitespace cleanup of AppVeyor build files 2021-08-11 19:25:54 +02:00
bhalchandrap
82a9c67405
Add missing javadoc 2021-08-10 07:14:05 +01:00
Jens Geyer
f7e6c654bd bump version number 2021-08-03 22:21:05 +02:00
Yuxuan 'fishy' Wang
2c78047fcb THRIFT-4797: Go import improvements
This change improves two problems in go code imports:

1. Always rename import the thrift package into "thrift", as we allow
   the user to use a different library to replace the official one from
   the compiler command line, this makes sure that in compiler generated
   go code we can always blindly use "thrift.*".

2. We added auto rename import dedup in d9019fc5a4, but in that change
   for system packages we always use the full import path as the dedup
   identifier, so system package "database/sql/driver" would not be
   detected as a conflict against a thrift go namespace of
   "foo.bar.driver". Use the part after the last "/" in system packages
   as the dedup identifier instead.
2021-08-01 10:07:45 -07:00
Jens Geyer
c8ae621a09 THRIFT-5445 "cancellationToken" cannot be used as argument name
Client: netstd
Patch: Jens Geyer
2021-08-01 13:04:33 +02:00
Jens Geyer
273607d1f4 THRIFT-5444 Netstd generator produces uncompileable code for enums ending with "_result" or "_args"
Client: netstd
Patch: Jens Geyer

This closes #2424
2021-08-01 12:01:27 +02:00
Yuxuan 'fishy' Wang
f695535122 THRIFT-5389: Fix const generation for optional fields
Client: go

The current compiler will generate uncompilable code when we use
optional enum and/or typedef'd types in a thrift constant.

This fixes the issue, also adds a test for that.
2021-07-30 08:47:45 -07:00
Yuxuan 'fishy' Wang
68c0272a0a Update README for go library
Because we briefly had go.mod file under lib/go/thrift in e27e82c46b
(it was later removed in d9fcdd3dba), using

    go get github.com/apache/thrift/lib/go/thrift/...

(as suggested by the current README) will get that particular version
instead of the latest released version. So update README to use

    go get github.com/apache/thrift

instead.

Also instead of saying we support Go 1.7+, say we support the officially
supported Go releases, as that's our new support policy.
2021-07-26 10:15:42 -07:00
Jens Geyer
47bf0e46e7 THRIFT-5442 Separate client service calls into send/recv methods and make them public
Client: netstd
Patch: Jens Geyer
2021-07-24 10:18:44 +02:00
hkb
fb1d50dfc5 THRIFT-5439 Lua Generator does not support const i64
Client: lua
Patch: Kaibin Huang

This closes #2413
2021-07-17 14:41:52 +02:00