David Reiss
30a9360e3f
THRIFT-172. java: Improve toString output for binary fields
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@719720 13f79535-47bb-0310-9956-ffa450edef68
2008-11-21 21:31:36 +00:00
David Reiss
7f5e184785
THRIFT-139. java: Fix indentation in beans mode
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@719701 13f79535-47bb-0310-9956-ffa450edef68
2008-11-21 20:25:14 +00:00
David Reiss
c26da0a391
THRIFT-202: java: Fix "make check"
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@719407 13f79535-47bb-0310-9956-ffa450edef68
2008-11-20 22:22:23 +00:00
David Reiss
466b3fafcd
Remove compiler/cpp/version.h in "make clean"
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@719380 13f79535-47bb-0310-9956-ffa450edef68
2008-11-20 21:24:32 +00:00
David Reiss
8c28df2569
Fix "make distclean" when Ruby is not in use
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@719379 13f79535-47bb-0310-9956-ffa450edef68
2008-11-20 21:24:18 +00:00
Kevin Clark
1d5a1f6500
rb: Remove extra validate in read [THRIFT-207]
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@719126 13f79535-47bb-0310-9956-ffa450edef68
2008-11-19 23:24:12 +00:00
Kevin Clark
031baf7086
Merge branch 'THRIFT-143'
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@714070 13f79535-47bb-0310-9956-ffa450edef68
2008-11-14 17:11:39 +00:00
Kevin Clark
713623bee6
rb: Validate struct _after_ read. [THRIFT-206]
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@714069 13f79535-47bb-0310-9956-ffa450edef68
2008-11-14 17:09:52 +00:00
Kevin Clark
159383f789
rb: raise if an object is serialized without required fields [THRIFT-143]
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@712945 13f79535-47bb-0310-9956-ffa450edef68
2008-11-11 05:46:04 +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
Kevin Clark
762e9bd15f
rb: Performance tweaks in Struct#initialize [THRIFT-188]
...
Author: Bryan Duxbury
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@709313 13f79535-47bb-0310-9956-ffa450edef68
2008-10-31 00:39:20 +00:00
Kevin Clark
cfca336fad
rb: Add docstrings to generated ruby code [THRIFT-147]
...
Author: Bryan Duxbury
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@709309 13f79535-47bb-0310-9956-ffa450edef68
2008-10-31 00:32:25 +00:00
David Reiss
080991bf98
THRIFT-186. erl: Make the Makefile work on OpenSolaris
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@709086 13f79535-47bb-0310-9956-ffa450edef68
2008-10-30 04:28:42 +00:00
David Reiss
d90cd1f539
THRIFT-168. cpp: Clear transport buffers before a flush
...
Previously, TBufferedTransport and TFramedTransport could
leave data in their buffers if a flush threw an exception.
This patch makes them reset their internal pointers before
flushing to the underlying transport.
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@709037 13f79535-47bb-0310-9956-ffa450edef68
2008-10-29 22:50:34 +00:00
David Reiss
f33e03c6fa
THRIFT-179. java: Include per-field docstrings in generated code
...
This also involves refactoring a bit of the functionality into
t_oop_generator.
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@708737 13f79535-47bb-0310-9956-ffa450edef68
2008-10-29 00:07:49 +00:00
David Reiss
f011bd4312
Make t_field inherit from t_doc instead of reimplementing it
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@708736 13f79535-47bb-0310-9956-ffa450edef68
2008-10-29 00:07:45 +00:00
Mark Slee
babaea2f0f
THRIFT-183 let non-root issues run fb303 status commands
...
Reviewed By: mcslee
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@708364 13f79535-47bb-0310-9956-ffa450edef68
2008-10-27 22:45:26 +00:00
David Reiss
66f5e9ba0b
Make a pointer const to fix a warning
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@707213 13f79535-47bb-0310-9956-ffa450edef68
2008-10-22 22:07:03 +00:00
David Reiss
80096e278c
Add a missing include to fix compilation on Ubuntu 8.10
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@707212 13f79535-47bb-0310-9956-ffa450edef68
2008-10-22 22:07:00 +00:00
David Reiss
ce426240ab
Add more files to .gitignore
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@707211 13f79535-47bb-0310-9956-ffa450edef68
2008-10-22 21:59:15 +00:00
David Reiss
ad8ce354ac
Make .gitignore more specific
...
The leading slashes prevent it from matching similar-looking paths
in subdirectories.
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@707210 13f79535-47bb-0310-9956-ffa450edef68
2008-10-22 21:59:12 +00:00
David Reiss
dc0aada961
THRIFT-173. Commit the html generator
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@706466 13f79535-47bb-0310-9956-ffa450edef68
2008-10-21 00:09:23 +00:00
David Reiss
826e648354
THRIFT-177. cpp: Add a missing "std::"
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@706418 13f79535-47bb-0310-9956-ffa450edef68
2008-10-20 21:29:07 +00:00
David Reiss
1cc0c5e6d6
THRIFT-109. python: Use self.assert* instead of assert in tests
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@705734 13f79535-47bb-0310-9956-ffa450edef68
2008-10-17 19:30:35 +00:00
Kevin Clark
7dc7f75e7c
rb: Create constants for field ids in generated structs [THRIFT-165]
...
Author: Bryan Duxbury
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@705330 13f79535-47bb-0310-9956-ffa450edef68
2008-10-16 19:15:20 +00:00
Kevin Clark
6ca3881f51
rb: Update HTTPClientSpec for THRIFT-156
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@705329 13f79535-47bb-0310-9956-ffa450edef68
2008-10-16 19:14:47 +00:00
Kevin Clark
c248560897
rb: Support SSL and correct Content-Type in HTTPClient [THRIFT-156]
...
Author: Dave Engberg
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@704994 13f79535-47bb-0310-9956-ffa450edef68
2008-10-15 19:06:18 +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
Mark Slee
fc8a1e0469
THRIFT-169: Fixes framed/buffered transport state on underlying flush failure
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@704710 13f79535-47bb-0310-9956-ffa450edef68
2008-10-14 22:00:36 +00:00
David Reiss
31997ca9ee
THRIFT-139. java: Expose field ids in more useful ways
...
- Define constants in each structure class that provide access to the
field ids by name (at compile time). Use them for (de)serialization.
- For beans-mode code, generate a generic getter and setter for accessing
fields by field id.
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@703028 13f79535-47bb-0310-9956-ffa450edef68
2008-10-09 00:08:46 +00:00
David Reiss
a0b4409f57
THRIFT-152. java: Set isset appropriately in structure constructors
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@702697 13f79535-47bb-0310-9956-ffa450edef68
2008-10-08 04:49:25 +00:00
David Reiss
c53a5944ed
Fix a compile bug introduced by r702644
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@702672 13f79535-47bb-0310-9956-ffa450edef68
2008-10-07 23:55:24 +00:00
David Reiss
9837aaf097
THRIFT-145. java: Make TNonblockingServer more robust against errors
...
TNonblockingServer was throwing a null pointer exception in certain cases.
We're not really sure what the root cause is, but this change prevents
the exception and also improves logging of certain undesirable conditions.
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@702661 13f79535-47bb-0310-9956-ffa450edef68
2008-10-07 23:03:47 +00:00
David Reiss
e11f3073f7
THRIFT-149. cpp: Make TNonblockingServer handle a shut-down ThreadManager
...
This is a step toward implementing a graceful shutdown.
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@702644 13f79535-47bb-0310-9956-ffa450edef68
2008-10-07 21:39:19 +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
8684554e29
THRIFT-119. java: structs' toString omits unset optional fields
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@700860 13f79535-47bb-0310-9956-ffa450edef68
2008-10-01 18:32:47 +00:00
David Reiss
931d69be9e
THRIFT-120. java: Make the nocamel option work for more methods
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@700668 13f79535-47bb-0310-9956-ffa450edef68
2008-10-01 03:24:54 +00:00
David Reiss
5af01bcbdc
THRIFT-100. java: Set __isset better in beans style
...
When setX(null) is called on a structure, set __isset.x to false.
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@700667 13f79535-47bb-0310-9956-ffa450edef68
2008-10-01 03:24:50 +00:00
Mark Slee
6341d13a1f
Python generator exception namespacing, THRIFT-150
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@700277 13f79535-47bb-0310-9956-ffa450edef68
2008-09-29 22:01:30 +00:00
David Reiss
7c28b33194
contrib/fb303: Some changes to the build for the Scribe release
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@697294 13f79535-47bb-0310-9956-ffa450edef68
2008-09-20 00:14:01 +00:00
David Reiss
f67ad9e68a
THRIFT-130. java: Eliminate frame{Read,Write} from TFramedTransport
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@692185 13f79535-47bb-0310-9956-ffa450edef68
2008-09-04 18:23:29 +00:00
Kevin Clark
5ad6d4a7e3
rb: Add pretty inspect, optional field hint for Thrift::Struct
...
Author: Bryan Duxbury
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@689193 13f79535-47bb-0310-9956-ffa450edef68
2008-08-26 20:02:07 +00:00
Kevin Clark
969c04b912
rb: Add FramedTransport#borrow/consume! [THRIFT-117]
...
This addition makes FramedTransport BinaryProtocolAccelerated ready.
Author: Bryan Duxbury
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@688901 13f79535-47bb-0310-9956-ffa450edef68
2008-08-25 22:16:45 +00:00
Kevin Clark
38a2ce635d
rb: Speed up Struct#initialize for optional fields [THRFIT-112]
...
Struct#initialize previously walked over every field and checked for
default values before assigning nil. The new approach assigns defaults
only to fields that have defaults, and lets Ruby handle nil ivars.
Author: Bryan Duxbury
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@688891 13f79535-47bb-0310-9956-ffa450edef68
2008-08-25 21:34:19 +00:00
Kevin Clark
14fe791ef3
Merge branch 'THRIFT-103'
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@682458 13f79535-47bb-0310-9956-ffa450edef68
2008-08-04 18:46:19 +00:00
David Reiss
4ad40d7c23
java: Specify in build.xml that we are using Java 1.5
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@682453 13f79535-47bb-0310-9956-ffa450edef68
2008-08-04 18:38:36 +00:00
Kevin Clark
a2693c135e
rb: Check container elements when Thrift.type_checking = true [THRIFT-104]
...
Author: Kevin Ballard <kevin@rapleaf.com>
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@681863 13f79535-47bb-0310-9956-ffa450edef68
2008-08-01 22:04:09 +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
Kevin Clark
3af9287a74
rb: Support raise Xception, message
for Structs that inherit from ::Exception [THRIFT-58]
...
Author: Kevin Ballard <kevin@rapleaf.com>
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@680542 13f79535-47bb-0310-9956-ffa450edef68
2008-07-28 22:20:36 +00:00
Kevin Clark
c8190174dc
rb: Add ext/ to loadpath so BinaryProtocolAccelerated specs pass
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@680539 13f79535-47bb-0310-9956-ffa450edef68
2008-07-28 22:16:34 +00:00