* Dynamically sized SCGI read buffer.

* Added 'call_command' that takes a view as the first parameter and
then a list of commands. It will return a list of lists containing the
results from those commands.

* Fixed the xmlrpc-c-config usage.


git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@954 e378c898-3ddf-0310-93e7-cc216c733640
This commit is contained in:
rakshasa
2007-08-15 21:38:44 +00:00
parent 6ca373d293
commit 11976871ac
6 changed files with 92 additions and 47 deletions
+6
View File
@@ -49,6 +49,10 @@ class SCgi;
class SCgiTask : public torrent::Event {
public:
static const unsigned int default_buffer_size = 2047;
static const int max_header_size = 2000;
static const int max_content_size = (128 << 10);
SCgiTask() { m_fileDesc = -1; }
bool is_open() const { return m_fileDesc != -1; }
@@ -70,6 +74,8 @@ private:
char* m_buffer;
char* m_position;
char* m_body;
unsigned int m_bufferSize;
};