Mark Slee
82a6c0f259
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
2007-04-04 21:08:21 +00:00
Mark Slee
09bfd61530
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
2007-04-04 19:56:41 +00:00
Mark Slee
afaf27607d
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
2007-04-03 19:47:04 +00:00
Mark Slee
ba35456acf
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
2007-04-03 07:31:51 +00:00
Mark Slee
8142b9d122
Fix whitepaper typo
...
Reviewed By: ditka
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665080 13f79535-47bb-0310-9956-ffa450edef68
2007-04-03 05:49:12 +00:00
Mark Slee
13a0d4a3d6
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
2007-04-03 03:16:11 +00:00
Mark Slee
ba8f8d7953
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
2007-04-03 00:34:00 +00:00
Mark Slee
c11045ade2
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
2007-04-01 23:14:38 +00:00
Marc Slemko
b6b5a9e001
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
2007-04-01 20:17:02 +00:00
Marc Slemko
10b3bdbb85
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
2007-04-01 09:14:05 +00:00
Aditya Agarwal
3f234dad0e
-- 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
2007-04-01 01:19:57 +00:00
Aditya Agarwal
9dc57402b5
-- 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
2007-03-31 17:45:12 +00:00
Aditya Agarwal
adf3e7f0c6
-- 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
2007-03-31 16:56:14 +00:00
Aditya Agarwal
0871967831
-- 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
2007-03-31 09:18:29 +00:00
Aditya Agarwal
af524ee5a0
-- 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
2007-03-31 08:28:06 +00:00
Martin Kraemer
ac62f948cc
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
2007-03-30 18:41:48 +00:00
James Wang
f1ceb477ea
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
2007-03-28 22:43:57 +00:00
James Wang
8f6e207a5d
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
2007-03-28 00:47:09 +00:00
James Wang
3e9d177fd2
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
2007-03-27 23:17:34 +00:00
Mark Slee
be0ae5b1be
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
2007-03-22 02:35:33 +00:00
Mark Slee
a821cfd39f
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
2007-03-21 06:53:03 +00:00
Mark Slee
06af13d308
Readme on PHP/Apache Thrift integration
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665063 13f79535-47bb-0310-9956-ffa450edef68
2007-03-21 06:50:52 +00:00
Mark Slee
24b49d30bd
Thrift whitepaper draft
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665062 13f79535-47bb-0310-9956-ffa450edef68
2007-03-21 01:24:00 +00:00
Martin Kraemer
a7d6c3c142
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
2007-03-16 02:03:32 +00:00
Mark Slee
6632e0b041
Constants lowercase in java true/false
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665060 13f79535-47bb-0310-9956-ffa450edef68
2007-03-14 09:08:38 +00:00
Mark Slee
8109757e6c
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
2007-03-14 03:07:00 +00:00
Mark Slee
7679196f1c
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
2007-03-14 02:47:35 +00:00
Mark Slee
0c2dff3f5a
Fix broken C++ Thrift test
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665057 13f79535-47bb-0310-9956-ffa450edef68
2007-03-09 19:26:57 +00:00
Mark Slee
561b536888
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
2007-03-09 19:26:29 +00:00
Aditya Agarwal
4265a2c4d9
-- 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
2007-03-08 03:10:29 +00:00
Mark Slee
4c91e55418
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
2007-03-08 01:22:46 +00:00
Mark Slee
227ac2c50e
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
2007-03-07 05:46:50 +00:00
Mark Slee
b6616fc42d
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
2007-03-07 05:46:05 +00:00
Mark Slee
07a3aab207
Thrift Tutorial
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665051 13f79535-47bb-0310-9956-ffa450edef68
2007-03-07 05:45:10 +00:00
Mark Slee
02d1edc6f0
Some thrift test code improvements
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665050 13f79535-47bb-0310-9956-ffa450edef68
2007-03-07 05:17:25 +00:00
Mark Slee
1d4ce80af8
Implement proper TThreadedServer shutdown
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665049 13f79535-47bb-0310-9956-ffa450edef68
2007-03-07 05:16:16 +00:00
Mark Slee
54b7ab9b53
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
2007-03-06 00:06:27 +00:00
Mark Slee
5ea15f9e32
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
2007-03-05 22:55:59 +00:00
Mark Slee
5d06feab21
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
2007-03-05 22:18:18 +00:00
Mark Slee
3303f36081
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
2007-03-05 20:09:37 +00:00
Mark Slee
c2c82c97f4
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
2007-03-05 05:45:51 +00:00
Mark Slee
4841b2d51f
Threads test makefile cleanup
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665043 13f79535-47bb-0310-9956-ffa450edef68
2007-03-05 05:41:04 +00:00
Mark Slee
c416a2730d
Threads testing package update
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665042 13f79535-47bb-0310-9956-ffa450edef68
2007-03-05 05:40:37 +00:00
Mark Slee
b32f3c6ad7
Threading libraries test for Thrift C++
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665041 13f79535-47bb-0310-9956-ffa450edef68
2007-03-05 04:48:48 +00:00
Mark Slee
4e441e296c
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
2007-03-02 21:23:30 +00:00
Mark Slee
a5a783f953
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
2007-03-02 19:41:08 +00:00
Mark Slee
6e3f637bab
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
2007-03-01 22:05:46 +00:00
Mark Slee
7c10eaf35c
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
2007-03-01 02:45:10 +00:00
Mark Slee
adde9687c6
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
2007-03-01 00:37:56 +00:00
Mark Slee
fb40c190ca
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
2007-03-01 00:35:54 +00:00