Upgrading vendor folder dependencies.
This commit is contained in:
parent
4a0cbcd770
commit
acbe9ad9e5
229 changed files with 10735 additions and 4528 deletions
2
vendor/git.apache.org/thrift.git/lib/py/setup.py
generated
vendored
2
vendor/git.apache.org/thrift.git/lib/py/setup.py
generated
vendored
|
@ -90,7 +90,7 @@ def run_setup(with_binary):
|
|||
twisted_deps = ['twisted']
|
||||
|
||||
setup(name='thrift',
|
||||
version='1.0.0-dev',
|
||||
version='0.12.0',
|
||||
description='Python bindings for the Apache Thrift RPC system',
|
||||
author='Thrift Developers',
|
||||
author_email='dev@thrift.apache.org',
|
||||
|
|
4
vendor/git.apache.org/thrift.git/lib/py/src/ext/protocol.h
generated
vendored
4
vendor/git.apache.org/thrift.git/lib/py/src/ext/protocol.h
generated
vendored
|
@ -33,8 +33,8 @@ class ProtocolBase {
|
|||
|
||||
public:
|
||||
ProtocolBase()
|
||||
: stringLimit_(std::numeric_limits<int32_t>::max()),
|
||||
containerLimit_(std::numeric_limits<int32_t>::max()),
|
||||
: stringLimit_((std::numeric_limits<int32_t>::max)()),
|
||||
containerLimit_((std::numeric_limits<int32_t>::max)()),
|
||||
output_(NULL) {}
|
||||
inline virtual ~ProtocolBase();
|
||||
|
||||
|
|
20
vendor/git.apache.org/thrift.git/lib/py/src/ext/protocol.tcc
generated
vendored
20
vendor/git.apache.org/thrift.git/lib/py/src/ext/protocol.tcc
generated
vendored
|
@ -144,7 +144,7 @@ inline int read_buffer(PyObject* buf, char** output, int len) {
|
|||
*output = PyBytes_AS_STRING(buf2->buf) + buf2->pos;
|
||||
#endif
|
||||
Py_ssize_t pos0 = buf2->pos;
|
||||
buf2->pos = std::min(buf2->pos + static_cast<Py_ssize_t>(len), buf2->string_size);
|
||||
buf2->pos = (std::min)(buf2->pos + static_cast<Py_ssize_t>(len), buf2->string_size);
|
||||
return static_cast<int>(buf2->pos - pos0);
|
||||
}
|
||||
}
|
||||
|
@ -212,7 +212,7 @@ inline bool check_ssize_t_32(Py_ssize_t len) {
|
|||
if (INT_CONV_ERROR_OCCURRED(len)) {
|
||||
return false;
|
||||
}
|
||||
if (!CHECK_RANGE(len, 0, std::numeric_limits<int32_t>::max())) {
|
||||
if (!CHECK_RANGE(len, 0, (std::numeric_limits<int32_t>::max)())) {
|
||||
PyErr_SetString(PyExc_OverflowError, "size out of range: exceeded INT32_MAX");
|
||||
return false;
|
||||
}
|
||||
|
@ -360,8 +360,8 @@ bool ProtocolBase<Impl>::encodeValue(PyObject* value, TType type, PyObject* type
|
|||
case T_I08: {
|
||||
int8_t val;
|
||||
|
||||
if (!parse_pyint(value, &val, std::numeric_limits<int8_t>::min(),
|
||||
std::numeric_limits<int8_t>::max())) {
|
||||
if (!parse_pyint(value, &val, (std::numeric_limits<int8_t>::min)(),
|
||||
(std::numeric_limits<int8_t>::max)())) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
@ -371,8 +371,8 @@ bool ProtocolBase<Impl>::encodeValue(PyObject* value, TType type, PyObject* type
|
|||
case T_I16: {
|
||||
int16_t val;
|
||||
|
||||
if (!parse_pyint(value, &val, std::numeric_limits<int16_t>::min(),
|
||||
std::numeric_limits<int16_t>::max())) {
|
||||
if (!parse_pyint(value, &val, (std::numeric_limits<int16_t>::min)(),
|
||||
(std::numeric_limits<int16_t>::max)())) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
@ -382,8 +382,8 @@ bool ProtocolBase<Impl>::encodeValue(PyObject* value, TType type, PyObject* type
|
|||
case T_I32: {
|
||||
int32_t val;
|
||||
|
||||
if (!parse_pyint(value, &val, std::numeric_limits<int32_t>::min(),
|
||||
std::numeric_limits<int32_t>::max())) {
|
||||
if (!parse_pyint(value, &val, (std::numeric_limits<int32_t>::min)(),
|
||||
(std::numeric_limits<int32_t>::max)())) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
@ -397,8 +397,8 @@ bool ProtocolBase<Impl>::encodeValue(PyObject* value, TType type, PyObject* type
|
|||
return false;
|
||||
}
|
||||
|
||||
if (!CHECK_RANGE(nval, std::numeric_limits<int64_t>::min(),
|
||||
std::numeric_limits<int64_t>::max())) {
|
||||
if (!CHECK_RANGE(nval, (std::numeric_limits<int64_t>::min)(),
|
||||
(std::numeric_limits<int64_t>::max)())) {
|
||||
PyErr_SetString(PyExc_OverflowError, "int out of range");
|
||||
return false;
|
||||
}
|
||||
|
|
11
vendor/git.apache.org/thrift.git/lib/py/src/transport/TSocket.py
generated
vendored
11
vendor/git.apache.org/thrift.git/lib/py/src/transport/TSocket.py
generated
vendored
|
@ -159,6 +159,15 @@ class TServerSocket(TSocketBase, TServerTransportBase):
|
|||
self._unix_socket = unix_socket
|
||||
self._socket_family = socket_family
|
||||
self.handle = None
|
||||
self._backlog = 128
|
||||
|
||||
def setBacklog(self, backlog=None):
|
||||
if not self.handle:
|
||||
self._backlog = backlog
|
||||
else:
|
||||
# We cann't update backlog when it is already listening, since the
|
||||
# handle has been created.
|
||||
logger.warn('You have to set backlog before listen.')
|
||||
|
||||
def listen(self):
|
||||
res0 = self._resolveAddr()
|
||||
|
@ -183,7 +192,7 @@ class TServerSocket(TSocketBase, TServerTransportBase):
|
|||
if hasattr(self.handle, 'settimeout'):
|
||||
self.handle.settimeout(None)
|
||||
self.handle.bind(res[4])
|
||||
self.handle.listen(128)
|
||||
self.handle.listen(self._backlog)
|
||||
|
||||
def accept(self):
|
||||
client, addr = self.handle.accept()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue