Roger Meier
a8b52c7a8b
THRIFT-6 TLP URL's and email's, haskell, more details
...
git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1029964 13f79535-47bb-0310-9956-ffa450edef68
2010-11-02 07:33:30 +00:00
Roger Meier
2287278140
THRIFT-6 update Version Info for several languages, add print-version to Makefile.am
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@1026299 13f79535-47bb-0310-9956-ffa450edef68
2010-10-22 11:20:25 +00:00
David Reiss
abafd79aee
THRIFT-335. python: Initial implementation of TCompactProtocol
...
Seems to work. No interoperability testing with other languages yet.
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@1001827 13f79535-47bb-0310-9956-ffa450edef68
2010-09-27 17:28:15 +00:00
David Reiss
a9ca25a81e
THRIFT-666. python: Allow THttpServer's responses to be overridden
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@991986 13f79535-47bb-0310-9956-ffa450edef68
2010-09-02 15:36:03 +00:00
David Reiss
c564fa5692
THRIFT-596. python: Make the TBufferedTransport read buffer size configurable
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@991985 13f79535-47bb-0310-9956-ffa450edef68
2010-09-02 15:36:00 +00:00
Bryan Duxbury
d6a02ff99b
THRIFT-597. py: Python THttpServer performance improvements
...
This enables buffered I/O and ThreadingMixin.
Patch: David Reiss
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@991971 13f79535-47bb-0310-9956-ffa450edef68
2010-09-02 15:14:27 +00:00
Bryan Duxbury
f2ef59ffbf
THRIFT-598. py: Allow Python's threading servers to use daemon threads
...
Patch: David Reiss
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@991969 13f79535-47bb-0310-9956-ffa450edef68
2010-09-02 15:12:06 +00:00
Anthony F. Molinaro
7112c0712e
THRIFT-875 : missing dist file
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@991813 13f79535-47bb-0310-9956-ffa450edef68
2010-09-02 05:09:05 +00:00
Bryan Duxbury
727d67dcfa
THRIFT-721. py: THttpClient ignores url parameters
...
Respect query string in THttpClient and generated remotes. Also, add an error message on unknown methods.
Patch: Thomas Kho
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@991786 13f79535-47bb-0310-9956-ffa450edef68
2010-09-02 01:00:19 +00:00
Bryan Duxbury
686d92ce66
THRIFT-824. py: TApplicationException.__str__() refers to class constants as globals
...
Refer to constants via 'self'.
Patch: Peter Schuller
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@991781 13f79535-47bb-0310-9956-ffa450edef68
2010-09-02 00:36:18 +00:00
David Reiss
73af3b7c4c
THRIFT-869. python: Disguise ECONNRESET as EOF on BSD
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@990955 13f79535-47bb-0310-9956-ffa450edef68
2010-08-30 21:57:07 +00:00
Bryan Duxbury
0d28efac2d
THRIFT-855. py: Include optimized compiled python objects in install
...
This patch causes the .pyc files to be included in the install.
Patch: Anthony Molinaro
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@987593 13f79535-47bb-0310-9956-ffa450edef68
2010-08-20 17:59:17 +00:00
Bryan Duxbury
b7887b860b
THRIFT-789. Files missing proper Apache license header
...
Added the Apache license header to a bunch of files that were missing it.
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@953167 13f79535-47bb-0310-9956-ffa450edef68
2010-06-09 21:30:54 +00:00
Bryan Duxbury
cb6d9708e2
THRIFT-438. py: Add support for Twisted.web in servers and clients
...
This patch adds a Twisted.web resource that can be used for processing incoming Thrift requests over HTTP
Patch: Esteve Fernandez
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@939413 13f79535-47bb-0310-9956-ffa450edef68
2010-04-29 18:14:54 +00:00
David Reiss
c548b3dd63
THRIFT-475. python: Eliminate DeprecationWarning
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@920661 13f79535-47bb-0310-9956-ffa450edef68
2010-03-09 05:19:18 +00:00
David Reiss
ff3d249d41
THRIFT-658. python: Add THttpClient.setTimeout()
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@920660 13f79535-47bb-0310-9956-ffa450edef68
2010-03-09 05:19:16 +00:00
David Reiss
6acc269d18
THRIFT-695. python: [de]serialize convenience functions
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@916508 13f79535-47bb-0310-9956-ffa450edef68
2010-02-26 00:56:02 +00:00
Todd Lipcon
f5dea4c7f3
THRIFT-637. python: Fix mixing of oneway and regular requests in TNonblockingServer
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@886646 13f79535-47bb-0310-9956-ffa450edef68
2009-12-03 01:18:44 +00:00
David Reiss
034c49f0fc
THRIFT-612. python: Fix exception bug in TFramedTransport.cstringio_refill
...
readFrame was being called without "self."
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@830673 13f79535-47bb-0310-9956-ffa450edef68
2009-10-28 17:07:14 +00:00
Esteve Fernandez
bff2a35adf
THRIFT-586. python: TSocket incorrectly sets the exception type when an end of file error occurs
...
TTransportException's type was set to "Transport not open" in some cases, which should
be its message.
Use named arguments and set the type for TTransportException to END_OF_FILE in TSocket#read
and TSocket#write.
reviewer: dreiss
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@818429 13f79535-47bb-0310-9956-ffa450edef68
2009-09-24 10:22:00 +00:00
Esteve Fernandez
d3571c2ace
THRIFT-535. py: Twisted Thrift protocol max length is too small (fix off-by-one error in MAX_LENGTH)
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@795187 13f79535-47bb-0310-9956-ffa450edef68
2009-07-17 18:35:52 +00:00
Esteve Fernandez
c5a7c151e1
THRIFT-535. py: Twisted Thrift protocol max length is too small
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@795176 13f79535-47bb-0310-9956-ffa450edef68
2009-07-17 18:18:19 +00:00
David Reiss
a043be31fc
THRIFT-495. python: Raise a TTransportException if TSocket is not open
...
Previously, TSocket.write would raise an AttributeError if the transport
had not been opened. A TTransportException with the code set to
NOT_OPEN is more appropriate. The cost of the check should be
negligible, since TSocket.write is already fairly expensive (it does a
system call).
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@773762 13f79535-47bb-0310-9956-ffa450edef68
2009-05-12 02:17:43 +00:00
David Reiss
16514d0a72
THRIFT-494. python: Update meta-information in setup.py
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@773306 13f79535-47bb-0310-9956-ffa450edef68
2009-05-10 05:14:44 +00:00
Bryan Duxbury
def30a6072
THRIFT-387. Add appropriate Apache header to all code files
...
This hits all the documentation and some misc code files that have avoided the license up to this point.
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@763048 13f79535-47bb-0310-9956-ffa450edef68
2009-04-08 00:19:37 +00:00
David Reiss
deda141392
THRIFT-388. Create a "ONEWAY" message type that is an alias for "CALL"
...
Pave the way for a new message type for oneway function calls.
For now, just define the constant in all languages and make
server implementations treat it the same way as a normal call.
Only C++ and Erlang currently check the message type (on the
server side).
There is a little bit of redundancy in the Erlang code, but
the alternative is a bit gross, and this split-up will be
necessary eventually when we start handling one-way calls
differently.
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@761389 13f79535-47bb-0310-9956-ffa450edef68
2009-04-02 19:22:31 +00:00
David Reiss
ea2cba8ba8
THRIFT-387. Add license headers to a bunch of files
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@760189 13f79535-47bb-0310-9956-ffa450edef68
2009-03-30 21:35:00 +00:00
David Reiss
2aa289072b
THRIFT-154. python: Make THttpClient take a URL in its constructor
...
Support https in the process.
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@758532 13f79535-47bb-0310-9956-ffa450edef68
2009-03-26 06:22:18 +00:00
David Reiss
d73255d1ac
THRIFT-329. python: Make TServerSocket.close() work properly
...
Changing the order of inheritance makes "close" refer to the
(correct) TSocketBase method, rather than the (stub)
TServerTransportBase method.
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@758072 13f79535-47bb-0310-9956-ffa450edef68
2009-03-24 22:51:02 +00:00
David Reiss
a528f54eeb
THRIFT-360. python: Make fastbinary skip struct fields with the wrong type
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@758071 13f79535-47bb-0310-9956-ffa450edef68
2009-03-24 22:48:40 +00:00
David Reiss
7c1f6f8e33
THRIFT-155. python: Reopen THttpClient on a flush
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@757996 13f79535-47bb-0310-9956-ffa450edef68
2009-03-24 20:10:24 +00:00
David Reiss
6ce401dd55
THRIFT-136. s/async/oneway/ in misc places
...
This is mostly an internal-only change.
It affects docstrings, messages, variables, test cases, etc.
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@757992 13f79535-47bb-0310-9956-ffa450edef68
2009-03-24 20:01:58 +00:00
David Reiss
c51986f438
THRIFT-136. s/async/oneway/ in comments
...
This is an internal-only change.
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@757990 13f79535-47bb-0310-9956-ffa450edef68
2009-03-24 20:01:25 +00:00
Kevin Clark
127d01cb06
THRIFT-391. py: Fix memory leak in fastbinary
...
Author: Alexander Shigin
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@757634 13f79535-47bb-0310-9956-ffa450edef68
2009-03-24 01:40:56 +00:00
David Reiss
4980910100
THRIFT-362. python: Detect endianness on Solaris
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@755776 13f79535-47bb-0310-9956-ffa450edef68
2009-03-18 23:14:13 +00:00
Kevin Clark
e8d3c47944
THRIFT-148. py: One more time, reapply the most *recent* patch
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@749795 13f79535-47bb-0310-9956-ffa450edef68
2009-03-03 22:13:46 +00:00
Kevin Clark
e43f7e0925
THRIFT-148. py: Add un-commited file missing from 749510
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@749786 13f79535-47bb-0310-9956-ffa450edef68
2009-03-03 22:03:57 +00:00
David Reiss
b139f64448
THRIFT-325. Remove a bunch of uses of the old command line format
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@745242 13f79535-47bb-0310-9956-ffa450edef68
2009-02-17 20:28:46 +00:00
David Reiss
fdd8b5ab01
THRIFT-340. python: Detect endianness properly on FreeBSD
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@745223 13f79535-47bb-0310-9956-ffa450edef68
2009-02-17 20:06:08 +00:00
David Reiss
0b7d6fa5ee
THRIFT-314. Purge reflection.limited
...
This was a feature designed to allow a Thrift server to report
information about its interface. However, the feature has
significant design problems, and is presence is currently causing
confusion without doing any good. Therefore, it is being removed.
It will always be in source control if and when we are ready to
come back to it.
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@741824 13f79535-47bb-0310-9956-ffa450edef68
2009-02-07 02:36:35 +00:00
David Reiss
f78ec2bc66
THRIFT-195. python: Add a simple THttpServer
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@739638 13f79535-47bb-0310-9956-ffa450edef68
2009-01-31 21:59:32 +00:00
David Reiss
1fe17774eb
python: Add TFileObjectTransport
...
TFileObjectTransport is a Thrift transport that wraps a
Python-style file-like object. This is necessary to add
methods like isOpen and readAll.
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@739637 13f79535-47bb-0310-9956-ffa450edef68
2009-01-31 21:59:27 +00:00
David Reiss
4c591c95a5
THRIFT-212. python: Make TFramedTransport implement CReadableTransport
...
This involved adding a few methods to provide lower-level access to the
internal read buffer. This will allow us to use TBinaryProtocolAccelerated
with TFramedTransport.
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@739632 13f79535-47bb-0310-9956-ffa450edef68
2009-01-31 21:39:25 +00:00
David Reiss
647d30d218
python: Make TFramedTransport use a cStringIO for reading
...
Tested by running a client against a framed-transport server.
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@739631 13f79535-47bb-0310-9956-ffa450edef68
2009-01-31 21:39:20 +00:00
David Reiss
fb695b77d3
python: Eliminate the option of TFramedTransport to not frame
...
We've done this in a few other languages. All the tests still pass.
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@739630 13f79535-47bb-0310-9956-ffa450edef68
2009-01-31 21:39:16 +00:00
David Reiss
74421273ad
THRIFT-67. python: Add TNonblockingServer
...
This TNonblockingServer is very similar to the C++ implementation.
It assumes the framed transport, but it uses select instead of libevent.
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@712306 13f79535-47bb-0310-9956-ffa450edef68
2008-11-07 23:09:31 +00:00
Mark Slee
4f1bbc7e8a
THRIFT-170: Buffered transports leave data in write buffer on failed flush
...
Reviewed By: mcslee
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@704714 13f79535-47bb-0310-9956-ffa450edef68
2008-10-14 22:05:11 +00:00
David Reiss
58434e6988
THRIFT-108. python: Fix call to PyDict_Next in fastbinary.c
...
The position parameter is supposed to be a Py_ssize_t*, not an int*.
This was probably just an oversight in the original patch, and it
was preventing maps from serializing properly on x86-64.
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@702640 13f79535-47bb-0310-9956-ffa450edef68
2008-10-07 21:08:10 +00:00
David Reiss
e29995e75b
THRIFT-48. python: Make TServerSocket work with Unix-domain sockets
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@681467 13f79535-47bb-0310-9956-ffa450edef68
2008-07-31 20:15:17 +00:00
David Reiss
0ee93eaa46
THRIFT-93. Remove unnecessary shebang lines from Python libraries
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@678529 13f79535-47bb-0310-9956-ffa450edef68
2008-07-21 19:03:11 +00:00