diff options
| author | 2008-04-01 18:56:31 +0000 | |
|---|---|---|
| committer | 2008-04-01 18:56:31 +0000 | |
| commit | 86c2b7abf7f8627c9f765b12ec334d1541dcfb61 (patch) | |
| tree | af2950b70648cbed2078c42eb2323b0a3a9e1743 /src/modules/m_http_client.cpp | |
| parent | Remove deprecated BufferedSocket::MarkAsClosed() (diff) | |
| download | inspircd++-86c2b7abf7f8627c9f765b12ec334d1541dcfb61.tar.gz inspircd++-86c2b7abf7f8627c9f765b12ec334d1541dcfb61.tar.bz2 inspircd++-86c2b7abf7f8627c9f765b12ec334d1541dcfb61.zip | |
Remove call to FlushWriteBuffer from BufferedSocket::Write(), this means we don't try write() pointlessly when we may very well not (chewing CPU), and instead waits for the socketengine to tell us we can write. Tested, works fine. (nothing used this return value anyway)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9247 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules/m_http_client.cpp')
| -rw-r--r-- | src/modules/m_http_client.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/modules/m_http_client.cpp b/src/modules/m_http_client.cpp index ef3cf5c33..ef036f3f2 100644 --- a/src/modules/m_http_client.cpp +++ b/src/modules/m_http_client.cpp @@ -292,7 +292,9 @@ bool HTTPSocket::OnConnected() this->status = HTTP_REQSENT; - return this->Write(request); + this->Write(request); + + return true; } bool HTTPSocket::OnDataReady() |
