mirror of
https://github.com/rakshasa/rtorrent.git
synced 2026-08-15 22:52:31 +00:00
* 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:
@@ -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;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user