common/thrift.git
18 years agofixing a typo
peter [Tue, 1 May 2007 04:03:22 +0000 (04:03 +0000)] 
fixing a typo

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665102 13f79535-47bb-0310-9956-ffa450edef68

18 years agoThrift: Fixing memory leak issue with memory buffer used in TPipedTransport
James Wang [Tue, 17 Apr 2007 22:38:58 +0000 (22:38 +0000)] 
Thrift: Fixing memory leak issue with memory buffer used in TPipedTransport

Reviewed by: boz

Test Plan: tested with falcon action_listener using PeekProcessor

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665101 13f79535-47bb-0310-9956-ffa450edef68

18 years agoThrift: Modifications to PeekProcessor to be able to support nested PeekProcessors
James Wang [Fri, 13 Apr 2007 20:10:39 +0000 (20:10 +0000)] 
Thrift: Modifications to PeekProcessor to be able to support nested PeekProcessors

Reviewed by: boz

Test Plan: Tested with Falcon

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665100 13f79535-47bb-0310-9956-ffa450edef68

18 years agoAdd explicit binary type to Thrift
Mark Slee [Fri, 13 Apr 2007 01:57:12 +0000 (01:57 +0000)] 
Add explicit binary type to Thrift

Summary: Identical to string in all languages except Java. Java String is NOT binary-safe, so we need to use raw byte[] in that case. PHP/RUBY/Python strings are all binary safe, and C++ std::string works fine and manages memory for you so it's the safest route. Java just needs this tweak.

Reviewed By: aditya

Test Plan: Use "binary" as a type instead of String.

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665099 13f79535-47bb-0310-9956-ffa450edef68

18 years agoCrazy byteswapping thrift patches from david reiss
Mark Slee [Fri, 13 Apr 2007 00:33:24 +0000 (00:33 +0000)] 
Crazy byteswapping thrift patches from david reiss

Reviewed By: ninjitsu

Test Plan: bswap64, holla holla

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665098 13f79535-47bb-0310-9956-ffa450edef68

18 years agosprintf fix on C++ tutorial server
Mark Slee [Wed, 11 Apr 2007 09:16:23 +0000 (09:16 +0000)] 
sprintf fix on C++ tutorial server

Reviewed By: danli

Test Plan: hello

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665097 13f79535-47bb-0310-9956-ffa450edef68

18 years agoFix messed up noninitialized things
Mark Slee [Wed, 11 Apr 2007 08:57:07 +0000 (08:57 +0000)] 
Fix messed up noninitialized things

Reviewed By: danli

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665096 13f79535-47bb-0310-9956-ffa450edef68

18 years ago-- trying to make TFileTransport destructor quicker
Aditya Agarwal [Wed, 11 Apr 2007 00:13:09 +0000 (00:13 +0000)] 
-- trying to make TFileTransport destructor quicker

Summary:
- setFlushMaxTimeUs to a lower value before trying to close the file

Reviewed By: jwang

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665095 13f79535-47bb-0310-9956-ffa450edef68

18 years ago-- fix issues with TFileTransport
Aditya Agarwal [Tue, 10 Apr 2007 23:15:04 +0000 (23:15 +0000)] 
-- fix issues with TFileTransport

Summary:
- Make sure that buffers are always emptied when destructor is called (or when file is closed)
- make flush a no-op if file is not open
- dont allow new events to be enqueued if the file is in the process of being closed

Reviewed By: slee, jwang

Test Plan: tested with building search indices on top of thrift logs

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665094 13f79535-47bb-0310-9956-ffa450edef68

18 years agoThrift: Checking in readonly option for TFileTransport
James Wang [Tue, 10 Apr 2007 17:29:06 +0000 (17:29 +0000)] 
Thrift: Checking in readonly option for TFileTransport

Reviewed by: boz

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665093 13f79535-47bb-0310-9956-ffa450edef68

18 years agoYeeeeeeeeahhh
Mark Slee [Tue, 10 Apr 2007 06:44:53 +0000 (06:44 +0000)] 
Yeeeeeeeeahhh

Summary: Missing that $ in the vairable

Reviewed By: php

Test Plan: you need that!

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665092 13f79535-47bb-0310-9956-ffa450edef68

18 years agoIn php generate array of enum values to string names
Mark Slee [Tue, 10 Apr 2007 06:15:25 +0000 (06:15 +0000)] 
In php generate array of enum values to string names

Summary: for peter k

Reviewed By: peter

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665091 13f79535-47bb-0310-9956-ffa450edef68

18 years agoForgot to add Java tutorials to thrift
Mark Slee [Tue, 10 Apr 2007 02:30:30 +0000 (02:30 +0000)] 
Forgot to add Java tutorials to thrift

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665090 13f79535-47bb-0310-9956-ffa450edef68

18 years ago-- check in updated pdf
Aditya Agarwal [Thu, 5 Apr 2007 01:20:45 +0000 (01:20 +0000)] 
-- check in updated pdf

Reviewed By: slee

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665089 13f79535-47bb-0310-9956-ffa450edef68

18 years ago- fix typo in thrift whitepaper
Aditya Agarwal [Thu, 5 Apr 2007 01:17:52 +0000 (01:17 +0000)] 
- fix typo in thrift whitepaper

Summary:
clases -> classes

Reviewed By: scott m

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665088 13f79535-47bb-0310-9956-ffa450edef68

18 years ago[thrift] Build fix for TFileTransport
dweatherford [Thu, 5 Apr 2007 00:20:40 +0000 (00:20 +0000)] 
[thrift] Build fix for TFileTransport

Summary: Not including config.h means we never get the HAVE_CLOCK_GETTIME #define, breaking the build with a duplicate function definition on machines that have a clock_gettime() function in the standard library.

Reviewed By: slee
Test Plan: it compiles, ship it
Revert: ok

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665087 13f79535-47bb-0310-9956-ffa450edef68

18 years agoOops typo.
Mark Slee [Wed, 4 Apr 2007 22:13:37 +0000 (22:13 +0000)] 
Oops typo.

Reviewed By: mcslee

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665086 13f79535-47bb-0310-9956-ffa450edef68

18 years agoBuild fixes and clock_get_time copy from paul querna
Mark Slee [Wed, 4 Apr 2007 22:11:17 +0000 (22:11 +0000)] 
Build fixes and clock_get_time copy from paul querna

Reviewed By: mcslee

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665085 13f79535-47bb-0310-9956-ffa450edef68

18 years agoThrift string copy construction pathces from kevin ko
Mark Slee [Wed, 4 Apr 2007 21:08:21 +0000 (21:08 +0000)] 
Thrift string copy construction pathces from kevin ko

Summary: Remove unnecessary string copy constructions in C++ code

Reviewed By: mcslee

Test Plan: build

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665084 13f79535-47bb-0310-9956-ffa450edef68

18 years agoTwo more thrift paper typos
Mark Slee [Wed, 4 Apr 2007 19:56:41 +0000 (19:56 +0000)] 
Two more thrift paper typos

Summary: libthread => libpthread and texttt{HashMap} missing slash

Reviewed By: david reiss

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665083 13f79535-47bb-0310-9956-ffa450edef68

18 years agoFixing typos in the Thrift whitepaper
Mark Slee [Tue, 3 Apr 2007 19:47:04 +0000 (19:47 +0000)] 
Fixing typos in the Thrift whitepaper

Reviewed By: eugene, yishan

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665082 13f79535-47bb-0310-9956-ffa450edef68

18 years agoFix build script reference problem
Mark Slee [Tue, 3 Apr 2007 07:31:51 +0000 (07:31 +0000)] 
Fix build script reference problem

Reviewed By: pquerna@apache.org

Test Plan: build w/o libevent installed

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665081 13f79535-47bb-0310-9956-ffa450edef68

18 years agoFix whitepaper typo
Mark Slee [Tue, 3 Apr 2007 05:49:12 +0000 (05:49 +0000)] 
Fix whitepaper typo

Reviewed By: ditka

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665080 13f79535-47bb-0310-9956-ffa450edef68

18 years agoPHP new build fix for TBinaryProtocol
Mark Slee [Tue, 3 Apr 2007 03:16:11 +0000 (03:16 +0000)] 
PHP new build fix for TBinaryProtocol

Reviewed By: shire

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665079 13f79535-47bb-0310-9956-ffa450edef68

18 years agoRemove extra TApplicationException:: in Thrift.h
Mark Slee [Tue, 3 Apr 2007 00:34:00 +0000 (00:34 +0000)] 
Remove extra TApplicationException:: in Thrift.h

Summary: G++ 4.1.1 compatibility

Reviewed By: alex tribble

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665078 13f79535-47bb-0310-9956-ffa450edef68

18 years agoUpdated Thrift whitepaper with minor formatting cleanup
Mark Slee [Sun, 1 Apr 2007 23:14:38 +0000 (23:14 +0000)] 
Updated Thrift whitepaper with minor formatting cleanup

Reviewed By: marc, aditya

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665077 13f79535-47bb-0310-9956-ffa450edef68

18 years agoRemoved comment about needing a lock in thread main. Access through boost::shared_pt...
Marc Slemko [Sun, 1 Apr 2007 20:17:02 +0000 (20:17 +0000)] 
Removed comment about needing a lock in thread main.  Access through boost::shared_ptr is thread safe

Reviewed By: none

Test Plan: N.A.

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665076 13f79535-47bb-0310-9956-ffa450edef68

18 years agoAdded thread library documentation to thrift whitepaper
Marc Slemko [Sun, 1 Apr 2007 09:14:05 +0000 (09:14 +0000)] 
Added thread library documentation to thrift whitepaper

Reviewed By: To be reviewed by slee and aditya

Test Plan: N.A.

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665075 13f79535-47bb-0310-9956-ffa450edef68

18 years ago-- more assert fixes for thrift concurrency
Aditya Agarwal [Sun, 1 Apr 2007 01:19:57 +0000 (01:19 +0000)] 
-- more assert fixes for thrift concurrency

Reviewed By: mcslee

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665074 13f79535-47bb-0310-9956-ffa450edef68

18 years ago-- assert fixes for thrift concurrency lib
Aditya Agarwal [Sat, 31 Mar 2007 17:45:12 +0000 (17:45 +0000)] 
-- assert fixes for thrift concurrency lib

Summary:
- cannot assume that assert.h is defined

Reviewed By: marc k

Test Plan: everything compiles

Notes:
- need to reflect these changes in libfacebook/fbthread

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665073 13f79535-47bb-0310-9956-ffa450edef68

18 years ago-- added a facebook services section to the thrift paper
Aditya Agarwal [Sat, 31 Mar 2007 16:56:14 +0000 (16:56 +0000)] 
-- added a facebook services section to the thrift paper

Reviewed By: slee

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665072 13f79535-47bb-0310-9956-ffa450edef68

18 years ago-- checking in pdf copy of thrift paper into doc directory
Aditya Agarwal [Sat, 31 Mar 2007 09:18:29 +0000 (09:18 +0000)] 
-- checking in pdf copy of thrift paper into doc directory

Reviewed By: tbr-mcslee

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665071 13f79535-47bb-0310-9956-ffa450edef68

18 years ago-- additions/fixes to thrift paper
Aditya Agarwal [Sat, 31 Mar 2007 08:28:06 +0000 (08:28 +0000)] 
-- additions/fixes to thrift paper

Summary:
- fixed some typos and added a subsection on TFileTransport

Reviewed By: tbr-mcslee

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665070 13f79535-47bb-0310-9956-ffa450edef68

18 years agoThrift - remove client disconnect error
Martin Kraemer [Fri, 30 Mar 2007 18:41:48 +0000 (18:41 +0000)] 
Thrift - remove client disconnect error

Summary:
It's fairly obnoxious.

Reviewed By: Slee and Karl

Test Plan:

Revert Plan: revertible

Notes:

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665069 13f79535-47bb-0310-9956-ffa450edef68

18 years agoThrift: Making TProcessor::process(io) non-virtual again, since my last change which...
James Wang [Wed, 28 Mar 2007 22:43:57 +0000 (22:43 +0000)] 
Thrift: Making TProcessor::process(io) non-virtual again, since my last change which made it virtual caused compiling errors of functions being hidden, ugh

Reviewed by: Karl

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665068 13f79535-47bb-0310-9956-ffa450edef68

18 years agoThrift: PeekProcessor - moving PeekEnd call after PeekBuffer
James Wang [Wed, 28 Mar 2007 00:47:09 +0000 (00:47 +0000)] 
Thrift: PeekProcessor - moving PeekEnd call after PeekBuffer

Reviewed by: boz

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665067 13f79535-47bb-0310-9956-ffa450edef68

18 years agoThrift: Adding StatsProcessor, PeekProcessor, TPipedFileReaderTransport, and TPipedFi...
James Wang [Tue, 27 Mar 2007 23:17:34 +0000 (23:17 +0000)] 
Thrift: Adding StatsProcessor, PeekProcessor, TPipedFileReaderTransport, and TPipedFileReaderTransportFactory classes
- StatsProcessor can be used to print events, or keep track of event frequency
- PeekProcessor is used to examine data in a thrift event, prior to passing it along to an underlying processor
- TPipedFileReaderTransport and its factory are used to pipe a TFileReaderTransport (which TFileProcessor requires)

Also fixed some bugs in TFileTransport - next flush time was overflowing and not always being reset

Reviewed by: aditya, mcslee

Test Plan: Tested using various thrift clients (scribe, falcon) and gdb in sandbox and on dev008.

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665066 13f79535-47bb-0310-9956-ffa450edef68

18 years agoFix heinous TMemoryBuffer bug and warning in FileTransport
Mark Slee [Thu, 22 Mar 2007 02:35:33 +0000 (02:35 +0000)] 
Fix heinous TMemoryBuffer bug and warning in FileTransport

Reviewed By: dweatherford

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665065 13f79535-47bb-0310-9956-ffa450edef68

18 years agoMissed an include line in sample code
Mark Slee [Wed, 21 Mar 2007 06:53:03 +0000 (06:53 +0000)] 
Missed an include line in sample code

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665064 13f79535-47bb-0310-9956-ffa450edef68

18 years agoReadme on PHP/Apache Thrift integration
Mark Slee [Wed, 21 Mar 2007 06:50:52 +0000 (06:50 +0000)] 
Readme on PHP/Apache Thrift integration

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665063 13f79535-47bb-0310-9956-ffa450edef68

18 years agoThrift whitepaper draft
Mark Slee [Wed, 21 Mar 2007 01:24:00 +0000 (01:24 +0000)] 
Thrift whitepaper draft

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665062 13f79535-47bb-0310-9956-ffa450edef68

18 years agoThrift: fix error with handling TApplicationException
Martin Kraemer [Fri, 16 Mar 2007 02:03:32 +0000 (02:03 +0000)] 
Thrift: fix error with handling TApplicationException

Summary:
The php recv functions for method invocations didn't pass a proper input object into the handler for reading an application exception. This caused graceful thrift failures to not work gracefully in PHP.

Reviewed By: Slee

Test Plan: Tested by invoking from a thrift client a function not defined on a thrift server.  Should response with Invalid method name

Revert Plan: revertible

Notes:

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665061 13f79535-47bb-0310-9956-ffa450edef68

18 years agoConstants lowercase in java true/false
Mark Slee [Wed, 14 Mar 2007 09:08:38 +0000 (09:08 +0000)] 
Constants lowercase in java true/false

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665060 13f79535-47bb-0310-9956-ffa450edef68

18 years agoGenerate toString() convenience method for Thrift java structs
Mark Slee [Wed, 14 Mar 2007 03:07:00 +0000 (03:07 +0000)] 
Generate toString() convenience method for Thrift java structs

Reviewed By: biren

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665059 13f79535-47bb-0310-9956-ffa450edef68

18 years agoVarious Thrift fixes, including Application Exception support in Ruby, better errror...
Mark Slee [Wed, 14 Mar 2007 02:47:35 +0000 (02:47 +0000)] 
Various Thrift fixes, including Application Exception support in Ruby, better errror messages across languages, etc.

Reviewed By: thrift

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665058 13f79535-47bb-0310-9956-ffa450edef68

18 years agoFix broken C++ Thrift test
Mark Slee [Fri, 9 Mar 2007 19:26:57 +0000 (19:26 +0000)] 
Fix broken C++ Thrift test

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665057 13f79535-47bb-0310-9956-ffa450edef68

18 years agoFix TServerSocket accept() to not do 200ms polling
Mark Slee [Fri, 9 Mar 2007 19:26:29 +0000 (19:26 +0000)] 
Fix TServerSocket accept() to not do 200ms polling

Summary: Better to signal to unix file in select

Reviewed By: marc

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665056 13f79535-47bb-0310-9956-ffa450edef68

18 years ago-- Fix compiler warnings
Aditya Agarwal [Thu, 8 Mar 2007 03:10:29 +0000 (03:10 +0000)] 
-- Fix compiler warnings

Summary:
- These showed up when I was compiling on my local machine (cygwin!!)

Reviewed By: thrifty

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665055 13f79535-47bb-0310-9956-ffa450edef68

18 years agoFix cleanup and bootstrap
Mark Slee [Thu, 8 Mar 2007 01:22:46 +0000 (01:22 +0000)] 
Fix cleanup and bootstrap

Summary: spaces in directory names should work

Reviewed By: aditya

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665054 13f79535-47bb-0310-9956-ffa450edef68

18 years agoRuby code gen fixes and some README improvements
Mark Slee [Wed, 7 Mar 2007 05:46:50 +0000 (05:46 +0000)] 
Ruby code gen fixes and some README improvements

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665053 13f79535-47bb-0310-9956-ffa450edef68

18 years agoNo such thing as e.message in python socket error?
Mark Slee [Wed, 7 Mar 2007 05:46:05 +0000 (05:46 +0000)] 
No such thing as e.message in python socket error?

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665052 13f79535-47bb-0310-9956-ffa450edef68

18 years agoThrift Tutorial
Mark Slee [Wed, 7 Mar 2007 05:45:10 +0000 (05:45 +0000)] 
Thrift Tutorial

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665051 13f79535-47bb-0310-9956-ffa450edef68

18 years agoSome thrift test code improvements
Mark Slee [Wed, 7 Mar 2007 05:17:25 +0000 (05:17 +0000)] 
Some thrift test code improvements

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665050 13f79535-47bb-0310-9956-ffa450edef68

18 years agoImplement proper TThreadedServer shutdown
Mark Slee [Wed, 7 Mar 2007 05:16:16 +0000 (05:16 +0000)] 
Implement proper TThreadedServer shutdown

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665049 13f79535-47bb-0310-9956-ffa450edef68

18 years agoREADMEs and DOCs and ant tasks, oh my
Mark Slee [Tue, 6 Mar 2007 00:06:27 +0000 (00:06 +0000)] 
READMEs and DOCs and ant tasks, oh my

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665048 13f79535-47bb-0310-9956-ffa450edef68

18 years agoGet rid of all the using namespace and using boost:: declarations in Thrift header...
Mark Slee [Mon, 5 Mar 2007 22:55:59 +0000 (22:55 +0000)] 
Get rid of all the using namespace and using boost:: declarations in Thrift header files

Summary: To remove upstream dependencies. Still keeping some specific using directives around.

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665047 13f79535-47bb-0310-9956-ffa450edef68

18 years agoThrift build cleanup stuff
Mark Slee [Mon, 5 Mar 2007 22:18:18 +0000 (22:18 +0000)] 
Thrift build cleanup stuff

Summary: Get rid of autoconf stuff for lib/php, it doesn't do anything

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665046 13f79535-47bb-0310-9956-ffa450edef68

18 years agoThrift CPP threading fixes
Mark Slee [Mon, 5 Mar 2007 20:09:37 +0000 (20:09 +0000)] 
Thrift CPP threading fixes

Reviewed By: karl

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665045 13f79535-47bb-0310-9956-ffa450edef68

18 years agoMove helper structure declarations into .h file
Mark Slee [Mon, 5 Mar 2007 05:45:51 +0000 (05:45 +0000)] 
Move helper structure declarations into .h file

Reviewed By: aditya

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665044 13f79535-47bb-0310-9956-ffa450edef68

18 years agoThreads test makefile cleanup
Mark Slee [Mon, 5 Mar 2007 05:41:04 +0000 (05:41 +0000)] 
Threads test makefile cleanup

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665043 13f79535-47bb-0310-9956-ffa450edef68

18 years agoThreads testing package update
Mark Slee [Mon, 5 Mar 2007 05:40:37 +0000 (05:40 +0000)] 
Threads testing package update

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665042 13f79535-47bb-0310-9956-ffa450edef68

18 years agoThreading libraries test for Thrift C++
Mark Slee [Mon, 5 Mar 2007 04:48:48 +0000 (04:48 +0000)] 
Threading libraries test for Thrift C++

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665041 13f79535-47bb-0310-9956-ffa450edef68

18 years agoDo not check error code if select returns 0
Mark Slee [Fri, 2 Mar 2007 21:23:30 +0000 (21:23 +0000)] 
Do not check error code if select returns 0

Summary: They don't seem to be guaranteed on our system, 0 just means timeout

Reviewed By: karl

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665040 13f79535-47bb-0310-9956-ffa450edef68

18 years agoServer robustness fixes in Thrift C++ libs
Mark Slee [Fri, 2 Mar 2007 19:41:08 +0000 (19:41 +0000)] 
Server robustness fixes in Thrift C++ libs

Summary: ServerSockets can be interrupt() ed

Reviewed By: marc, karl

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665039 13f79535-47bb-0310-9956-ffa450edef68

18 years agoProper shutdown functionality for Thrift servers
Mark Slee [Thu, 1 Mar 2007 22:05:46 +0000 (22:05 +0000)] 
Proper shutdown functionality for Thrift servers

Reviewed By: karl

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665038 13f79535-47bb-0310-9956-ffa450edef68

18 years agoAdd join to the ThreadManager
Mark Slee [Thu, 1 Mar 2007 02:45:10 +0000 (02:45 +0000)] 
Add join to the ThreadManager

Summary: Now you can join against all the threads in a ThreadManager

Reviewed By: marc, xp-style

Test Plan: Use with new ThriftServer shutdown mechanisms

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665037 13f79535-47bb-0310-9956-ffa450edef68

18 years agoGiving Marc K props for crazy bitshifting in PHP binary protocol
Mark Slee [Thu, 1 Mar 2007 00:37:56 +0000 (00:37 +0000)] 
Giving Marc K props for crazy bitshifting in PHP binary protocol

Reviewed By: marc

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665036 13f79535-47bb-0310-9956-ffa450edef68

18 years agoOops missed license on one python file
Mark Slee [Thu, 1 Mar 2007 00:35:54 +0000 (00:35 +0000)] 
Oops missed license on one python file

Reviewed By: mcslee

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665035 13f79535-47bb-0310-9956-ffa450edef68

18 years agoApplying Thrift license to ruby source
Mark Slee [Thu, 1 Mar 2007 00:34:42 +0000 (00:34 +0000)] 
Applying Thrift license to ruby source

Reviewed By: ruby

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665034 13f79535-47bb-0310-9956-ffa450edef68

18 years agoApply Thrift license to PHP source code
Mark Slee [Thu, 1 Mar 2007 00:31:30 +0000 (00:31 +0000)] 
Apply Thrift license to PHP source code

Reviewed By: php

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665033 13f79535-47bb-0310-9956-ffa450edef68

18 years agoApplying Thrift software license to Python source
Mark Slee [Thu, 1 Mar 2007 00:20:36 +0000 (00:20 +0000)] 
Applying Thrift software license to Python source

Reviewed By: python

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665032 13f79535-47bb-0310-9956-ffa450edef68

18 years agoApply Thrift license to Java sources
Mark Slee [Thu, 1 Mar 2007 00:00:27 +0000 (00:00 +0000)] 
Apply Thrift license to Java sources

Reviewed By: bash

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665031 13f79535-47bb-0310-9956-ffa450edef68

18 years agoThrift license applied to all the C++ files
Mark Slee [Wed, 28 Feb 2007 23:58:26 +0000 (23:58 +0000)] 
Thrift license applied to all the C++ files

Reviewed By: bash

Notes: marc says $*, corson says "$@"

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665030 13f79535-47bb-0310-9956-ffa450edef68

18 years agoSome Thrift documentation cleanups
Mark Slee [Wed, 28 Feb 2007 21:43:54 +0000 (21:43 +0000)] 
Some Thrift documentation cleanups

Summary: Getting ready to hand this over to powerset, just want to have the right licenses in place and such first.

Reviewed By: thrift

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665029 13f79535-47bb-0310-9956-ffa450edef68

18 years agoTApplicationException handling in PHP generated thrift code
Mark Slee [Tue, 27 Feb 2007 22:11:39 +0000 (22:11 +0000)] 
TApplicationException handling in PHP generated thrift code

Reviewed By: php

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665028 13f79535-47bb-0310-9956-ffa450edef68

18 years agoBogus $this->type in TApplicationException in PHP
Mark Slee [Tue, 27 Feb 2007 22:11:09 +0000 (22:11 +0000)] 
Bogus $this->type in TApplicationException in PHP

Reviewed By: php

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665027 13f79535-47bb-0310-9956-ffa450edef68

18 years agoPython HttpClient for Thrift
Mark Slee [Tue, 27 Feb 2007 20:17:00 +0000 (20:17 +0000)] 
Python HttpClient for Thrift

Reviewed By: thrifty goodness for SMC

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665026 13f79535-47bb-0310-9956-ffa450edef68

18 years agoThrift HTTP client optimizations
Mark Slee [Tue, 27 Feb 2007 19:53:38 +0000 (19:53 +0000)] 
Thrift HTTP client optimizations

Summary: When reading chunked encoding don't always get all the parts right away, return one part at a time so that reading code can deserialize the data on the fly.

Reviewed By: http

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665025 13f79535-47bb-0310-9956-ffa450edef68

18 years agoVarious bug fixes with the THttpClient
Mark Slee [Tue, 27 Feb 2007 19:03:01 +0000 (19:03 +0000)] 
Various bug fixes with the THttpClient

Summary: All kinds of buffer madness, what a pain.

Reviewed By: http

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665024 13f79535-47bb-0310-9956-ffa450edef68

18 years agoWhoops there were 2 extra spaces in this code
Mark Slee [Tue, 27 Feb 2007 05:18:07 +0000 (05:18 +0000)] 
Whoops there were 2 extra spaces in this code

Summary: That bothers me.

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665023 13f79535-47bb-0310-9956-ffa450edef68

18 years agoThrift HTTP client in C++
Mark Slee [Tue, 27 Feb 2007 05:16:23 +0000 (05:16 +0000)] 
Thrift HTTP client in C++

Reviewed By: aditya, dweatherford

Test Plan: SMC client

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665022 13f79535-47bb-0310-9956-ffa450edef68

18 years agoSame fix to thrift codebase
Mark Slee [Tue, 27 Feb 2007 01:16:55 +0000 (01:16 +0000)] 
Same fix to thrift codebase

Reviewed By: aditya

 line, and those below, will be ignored--

M    php/src/Thrift.php
M    php/src/transport/TSocket.php
M    php/src/transport/TPhpStream.php

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665021 13f79535-47bb-0310-9956-ffa450edef68

18 years ago-- fix overflow error in seekToChunk()
Aditya Agarwal [Tue, 27 Feb 2007 00:07:45 +0000 (00:07 +0000)] 
-- fix overflow error in seekToChunk()

Summary:
- I love finding overflow errors.

Reviewed By: jwang

Test Plan: tested by rolling back search logfile

Notes:
- This should not affect anything currently in production.

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665020 13f79535-47bb-0310-9956-ffa450edef68

18 years agoFix thrift includes
Mark Slee [Thu, 22 Feb 2007 01:01:10 +0000 (01:01 +0000)] 
Fix thrift includes

Summary: Remove circular ref

Reviewed By: lucas

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665019 13f79535-47bb-0310-9956-ffa450edef68

18 years agoProper exception types in PHP thrift
Mark Slee [Wed, 21 Feb 2007 07:35:03 +0000 (07:35 +0000)] 
Proper exception types in PHP thrift

Reviewed By: tbr-aditya

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665018 13f79535-47bb-0310-9956-ffa450edef68

18 years agoRemove nonexistent TBuf ref
Mark Slee [Wed, 21 Feb 2007 05:42:38 +0000 (05:42 +0000)] 
Remove nonexistent TBuf ref

Reviewed By: goozebury

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665017 13f79535-47bb-0310-9956-ffa450edef68

18 years agoMove constant defs into Thrift.py to avoid cirulcar includes
Mark Slee [Wed, 21 Feb 2007 05:38:12 +0000 (05:38 +0000)] 
Move constant defs into Thrift.py to avoid cirulcar includes

Reviewed By: snakes

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665016 13f79535-47bb-0310-9956-ffa450edef68

18 years agoPython application level exceptions
Mark Slee [Wed, 21 Feb 2007 05:37:50 +0000 (05:37 +0000)] 
Python application level exceptions

Reviewed By: snakes

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665015 13f79535-47bb-0310-9956-ffa450edef68

18 years agoSome thrift test code fixes
Mark Slee [Wed, 21 Feb 2007 05:17:48 +0000 (05:17 +0000)] 
Some thrift test code fixes

Reviewed By: tbr-testaditya

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665014 13f79535-47bb-0310-9956-ffa450edef68

18 years agoStarting python exception handling cleanup
Mark Slee [Wed, 21 Feb 2007 05:16:30 +0000 (05:16 +0000)] 
Starting python exception handling cleanup

Reviewed By: aditya

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665013 13f79535-47bb-0310-9956-ffa450edef68

18 years agoprotocol exceptions in java
Mark Slee [Wed, 21 Feb 2007 04:56:26 +0000 (04:56 +0000)] 
protocol exceptions in java

Reviewed By: aditya

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665012 13f79535-47bb-0310-9956-ffa450edef68

18 years agoMore java error codes in thrift
Mark Slee [Wed, 21 Feb 2007 04:54:38 +0000 (04:54 +0000)] 
More java error codes in thrift

Reviewed By: aditya

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665011 13f79535-47bb-0310-9956-ffa450edef68

18 years agoNew thrift c++ error code
Mark Slee [Wed, 21 Feb 2007 04:54:05 +0000 (04:54 +0000)] 
New thrift c++ error code

Summary: ALREADY_OPEN

Reviewed By: aditya

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665010 13f79535-47bb-0310-9956-ffa450edef68

18 years agoThrift application exceptions in Java, code gen
Mark Slee [Wed, 21 Feb 2007 04:17:55 +0000 (04:17 +0000)] 
Thrift application exceptions in Java, code gen

Reviewed By: jrift

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665009 13f79535-47bb-0310-9956-ffa450edef68

18 years agoThrift application exceptions in Java
Mark Slee [Wed, 21 Feb 2007 04:17:34 +0000 (04:17 +0000)] 
Thrift application exceptions in Java

Reviewed By: thrift

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665008 13f79535-47bb-0310-9956-ffa450edef68

18 years agoC++ Thrift server throws application exceptions for invalid message types
Mark Slee [Wed, 21 Feb 2007 01:40:05 +0000 (01:40 +0000)] 
C++ Thrift server throws application exceptions for invalid message types

Reviewed By: aditya

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665007 13f79535-47bb-0310-9956-ffa450edef68

18 years agoApplication exception types for Thrift
Mark Slee [Wed, 21 Feb 2007 01:39:23 +0000 (01:39 +0000)] 
Application exception types for Thrift

Reviewed By: aditya

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665006 13f79535-47bb-0310-9956-ffa450edef68

18 years agoGen code with /usr/bin/env python not /usr/bin/python
Mark Slee [Wed, 21 Feb 2007 00:22:33 +0000 (00:22 +0000)] 
Gen code with /usr/bin/env python not /usr/bin/python

Summary: More reliable, lets user customize which python to use

Reviewed By: dougb

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665005 13f79535-47bb-0310-9956-ffa450edef68

18 years agoPython code gen includes __init__.py and package directory
Mark Slee [Wed, 21 Feb 2007 00:05:18 +0000 (00:05 +0000)] 
Python code gen includes __init__.py and package directory

Reviewed By: aditya

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665004 13f79535-47bb-0310-9956-ffa450edef68

18 years agoThrift Binary protocol improvements and application exceptions
Mark Slee [Tue, 20 Feb 2007 20:59:21 +0000 (20:59 +0000)] 
Thrift Binary protocol improvements and application exceptions

Summary: Add application exceptions for unknown methods etc, and also let binary protocol support size limits on containers and strings

Reviewed By: aditya, xp-wayne

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665003 13f79535-47bb-0310-9956-ffa450edef68