Mark Slee
0f2916c3f6
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
2007-04-11 09:16:23 +00:00
Mark Slee
cbc51600ee
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
2007-04-11 08:57:07 +00:00
Aditya Agarwal
8dc76e6a87
-- 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
2007-04-11 00:13:09 +00:00
Aditya Agarwal
89b85f87d8
-- 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
2007-04-10 23:15:04 +00:00
James Wang
c10bba1e16
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
2007-04-10 17:29:06 +00:00
Mark Slee
b86c4b251e
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
2007-04-10 06:44:53 +00:00
Mark Slee
ec3f32009b
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
2007-04-10 06:15:25 +00:00
Mark Slee
cb39f08ced
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
2007-04-10 02:30:30 +00:00
Aditya Agarwal
2e15e20804
-- 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
2007-04-05 01:20:45 +00:00
Aditya Agarwal
8c5daa4457
- 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
2007-04-05 01:17:52 +00:00
dweatherford
86efa70748
[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
2007-04-05 00:20:40 +00:00
Mark Slee
ff24f74b49
Oops typo.
...
Reviewed By: mcslee
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665086 13f79535-47bb-0310-9956-ffa450edef68
2007-04-04 22:13:37 +00:00
Mark Slee
a28d819d13
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
2007-04-04 22:11:17 +00:00
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