Commit Graph

6348 Commits

Author SHA1 Message Date
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
lm2048
8bd82305cf THRIFT-5421 c_glib:Fix the problem of incorrect setting of errno in some files
Client: c_glib
Patch: lm2048
2021-07-09 22:12:42 +02:00
AlephAlpha
c06ab4ccc9 Small bug in Rust generated code for writing container types 2021-07-09 22:05:44 +02:00
William Van Hevelingen
b98e06df19 THRIFT-5440: Allow php8 in composer.json 2021-07-09 22:00:46 +02:00
geehanlin
d8c4345ecf fix isOpen return None, to be consistent with other transport
Client: python
2021-07-09 21:56:46 +02:00
Lewin Bormann
44e8a431a3 Rust: Upgrade dependency integer-encoding to 3.0 2021-07-06 23:52:19 +02:00
Jens Geyer
4434ee92d5 THRIFT-5438 Inconsistent handling of exceptions during message read vs. message write phase
Client: Delphi
Patch: Jens Geyer
2021-07-02 00:35:47 +02:00
Jens Geyer
3b686533f7 THRIFT-5437 Make TProtocolImpl CTOR virtual
Client: Delphi
Patch: Jens Geyer
2021-07-01 23:32:12 +02:00
Jens Geyer
7391a31032 uncaught_exception -> uncaught_exceptions
Client: cpp
Author: Rune Olesen

This closes #2287
2021-06-30 22:22:37 +02:00
Benjamin Naecker
582293bb5e Adds support for building C++ codegen on Solaris
Client: cpp
Author: Benjamin Naecker

This closes #2380

Solaris-derived systems split some functionality that is usually found
in `sys/ioctl.h` into `sys/filio.h`. In this case, the `FIONREAD`
constant is in the latter file.
2021-06-30 22:05:38 +02:00
Thomas
3c3a389c8a THRIFT-5425 Throw an exception when reading TSimpleJson in Java
Client: java
Author: Thomas Bruggink

This closes #2400

Throw an exception when reading TSimpleJson and update the comment to explain why.
2021-06-30 22:01:20 +02:00
belugabehr
5cada6a320
THRIFT-5433: Add Counter To Thread Name of TThreadPoolServer
Client: Java
Patch: David Mollitor
2021-06-30 09:08:34 -04:00
Jens Geyer
598ee9864b THRIFT-5436 Timeout.Infinite is not a good default
Client: netstd
Patch: Jens Geyer
2021-06-25 17:33:12 +02:00
Henry Catalini Smith
80e0d53d90 npm update jsdoc
Client: js
Patch: Henry Catalini Smith

This closes  #2402

This is a fix for these security warnings we're getting via this package.
2021-06-23 21:07:42 +02:00
Ruslan
ab72ebe564 Android restricts use of AI_V4MAPPED flag.
Client: cpp
Patch: Ruslan <thgall@mail.ru>

This closes #2406
2021-06-23 20:51:20 +02:00
Divye Kapoor
58fa7b4610 THRIFT-5430: Fix deadlock triggered by FieldMetaData.class.
Details of the deadlock are in the ticket.
This PR addresses the deadlock by limiting the scope of the locks
acquired in FieldMetaData.java to only protect calls to the structMap
hashtable. No locks should be held when the call to sClass.newInstance()
is in progress.

Tested: Regular CI builds should pass.
2021-06-23 20:30:55 +02:00
Jens Geyer
fcfa34108d Merge branch '0.14.2' into upstream 2021-06-17 22:59:32 +02:00
l00508282
3ccef5cecd THRIFT-5432 TSaslTransport throw TTransportException of MaxMessageSize reached
Client: java
Patch: GuangMing Lu
2021-06-16 21:29:01 +02:00
Jens Geyer
46693f7f5e THRIFT-5431 Response should include 'content-type' header
Client: netstd
Patch: Jens Geyer

This closes #2409
2021-06-16 09:00:13 +02:00
Jens Geyer
c19d05eeef Version 0.14.2 2021-06-15 23:48:17 +02:00
Yuxuan 'fishy' Wang
57e24caa86 THRIFT-5369: Use MaxMessageSize to check container sizes
Client: go
2021-06-12 18:52:58 +02:00
Jens Geyer
63e86ce23a Version 0.14.2 2021-06-11 00:55:22 +02:00