Roger Meier
345ecc739a
THRIFT-690 add new ApplicationExceptions (INTERNAL_ERROR, PROTOCOL_ERROR) to the following languages: as3, c_glib, cocoa, cpp, erl, hs, js, nodejs, ocaml, perl, py, rb
...
git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1153412 13f79535-47bb-0310-9956-ffa450edef68
2011-08-03 09:49:27 +00:00
Bryan Duxbury
54df97c507
THRIFT-1208. py: Compact protocol always reads and writes booleans as true
...
Patch: liwei
git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1146180 13f79535-47bb-0310-9956-ffa450edef68
2011-07-13 18:11:29 +00:00
Bryan Duxbury
1606659171
THRIFT-1103. py: TZlibTransport for python, a zlib compressed transport
...
This patch adds a new TZlibTransport to the Python library and extends the test suite to exercise it.
Patch: Will Pierce
git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1084276 13f79535-47bb-0310-9956-ffa450edef68
2011-03-22 18:06:04 +00:00
Bryan Duxbury
5040911bfa
THRIFT-1100. py: python TSSLSocket improvements, including certificate validation
...
This patch adds a number of features to TSSLSocket and TSSLServerSocket.
Patch: Will Pierce
git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1083880 13f79535-47bb-0310-9956-ffa450edef68
2011-03-21 17:59:49 +00:00
Bryan Duxbury
59d4efda81
THRIFT-1094. py: bug in TCompactProto python readMessageEnd method and updated test cases
...
This patch fixes a TCompactProtocol bug and expands the test cases to exercise the problem.
Patch: Will Pierce
git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1083877 13f79535-47bb-0310-9956-ffa450edef68
2011-03-21 17:38:22 +00:00
Bryan Duxbury
df4cffd34a
THRIFT-1093. py: several bugs in python TCompactProtocol
...
Patch; Will Pierce
git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1081864 13f79535-47bb-0310-9956-ffa450edef68
2011-03-15 17:16:09 +00:00
Bryan Duxbury
a48b7d6e52
THRIFT-1083. py: Preforking python process pool server
...
Patch: Dvir Volk
git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1079913 13f79535-47bb-0310-9956-ffa450edef68
2011-03-09 18:05:58 +00:00
Bryan Duxbury
2b969add48
THRIFT-1068. py: Python SSL Socket Support
...
A python implementation of TSSLSocket.
Patch: Kevin Worth
git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1073447 13f79535-47bb-0310-9956-ffa450edef68
2011-02-22 18:20:53 +00:00
Bryan Duxbury
e0498c984e
THRIFT-1049. py: Allow for TServerSocket python library to bind to a specific host
...
This patch adds a new host argument to TServerSocket that allows it to bind to a specific host.
Patch: Jake Farrell
git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1063806 13f79535-47bb-0310-9956-ffa450edef68
2011-01-26 17:54:02 +00:00
Bryan Duxbury
c216556bd6
update version numbers to 0.7.0-dev
...
git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1056453 13f79535-47bb-0310-9956-ffa450edef68
2011-01-07 18:45:29 +00:00
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