psychon
9439291e2d
DCCSock: Make sure we don't cache too much data in memory
...
This now only reads new data from disk if there is less than 1 MiB left to be
sent, which is still a lot. Before this there was no limit and the other end of
the socket could try to make us run out of memory.
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1463 726aef4b-f618-498e-8847-2d620e286838
2009-03-31 09:07:02 +00:00
psychon
5faa1d1d60
DCC only allows file transfers of up to 4 GiB big files
...
Make CDCCSock use uint32_t to generate the "unsigned, 4 byte integer in network
byte order" which is used to acknowledge the received data. Also make
OpenFile() abort for files bigger than 4 GiB, because we would run into
integer overflows later on. These transfers might work with some remote client,
but ZNC is (no longer?) one of them. ;)
Thanks to KiNgMaR for the original patch and some help with the uint32_t stuff.
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1461 726aef4b-f618-498e-8847-2d620e286838
2009-03-31 08:24:34 +00:00
psychon
5346cb5dd4
Fix an implicit (CFile *) false (this should have been NULL for sure)
...
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1428 726aef4b-f618-498e-8847-2d620e286838
2009-03-14 18:17:42 +00:00
psychon
177a5d24db
Include Utils.h in less headers and move some code out of the header
...
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1350 726aef4b-f618-498e-8847-2d620e286838
2009-01-25 20:07:14 +00:00
psychon
235b10c200
Use that new define everywhere
...
Now there are no uses of DEBUG_ONLY() left :(
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1349 726aef4b-f618-498e-8847-2d620e286838
2009-01-25 16:51:54 +00:00
psychon
6345ce12fa
Make O_RDONLY the default mode when opening files through CFile
...
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1336 726aef4b-f618-498e-8847-2d620e286838
2009-01-19 15:55:41 +00:00
psychon
08ad0291ea
Happy New Year 2009 everyone!
...
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1317 726aef4b-f618-498e-8847-2d620e286838
2009-01-01 12:22:21 +00:00
psychon
00fcf767a7
Keep the traffic stats more up-to-date (/msg *status traffic)
...
This now also adds the traffic caused by webadmin, schat and dcc bouncing
to the stats.
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1183 726aef4b-f618-498e-8847-2d620e286838
2008-08-31 07:21:21 +00:00
psychon
6857394d71
Remove CString::ToKBytes()
...
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1039 726aef4b-f618-498e-8847-2d620e286838
2008-05-05 21:39:09 +00:00
psychon
8d5fa6bc3b
Break some way too long lines into way less long lines
...
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1025 726aef4b-f618-498e-8847-2d620e286838
2008-04-18 09:25:28 +00:00
psychon
e72c445694
Clean up includes
...
All the headers are now self-contained (g++ Header.h -o /dev/null).
Some system headers where moved to the .cpp they are actually needed in,
some of our own headers are includes less. (Especially MD5.h)
Headers are sorted alphabetically while in e.g. FileUtils.cpp FileUtils.h
is the first file included.
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@915 726aef4b-f618-498e-8847-2d620e286838
2008-01-07 21:31:16 +00:00
psychon
eeec633e30
Update copyright header for 2008
...
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@910 726aef4b-f618-498e-8847-2d620e286838
2008-01-07 21:13:07 +00:00
psychon
a09a7e79f6
Switch to the copyright headers the GPLv2 wants us to have
...
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@843 726aef4b-f618-498e-8847-2d620e286838
2007-09-21 18:55:33 +00:00
prozacx
6dcacaa79e
Added contact info
...
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@752 726aef4b-f618-498e-8847-2d620e286838
2006-09-13 07:39:48 +00:00
prozacx
a9e60b43c5
Migrated away from CString::ToString() in favor of explicit constructors
...
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@669 726aef4b-f618-498e-8847-2d620e286838
2006-02-25 09:43:35 +00:00
prozacx
0042cd911f
Added 65K of buffer while still sending packets
...
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@387 726aef4b-f618-498e-8847-2d620e286838
2005-06-13 04:40:17 +00:00
prozacx
6dbb196ed7
Changed port from int to ushort
...
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@376 726aef4b-f618-498e-8847-2d620e286838
2005-06-01 21:01:26 +00:00
prozacx
223a660ca1
Moved CUtils::ToString() into CString class
...
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@248 726aef4b-f618-498e-8847-2d620e286838
2005-05-08 06:24:40 +00:00
prozacx
beb5b49b3f
Changed all references to std::string over to CString
...
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@240 726aef4b-f618-498e-8847-2d620e286838
2005-05-05 18:11:04 +00:00
prozacx
538d3ece4e
Initial revision
...
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@2 726aef4b-f618-498e-8847-2d620e286838
2004-08-24 00:08:51 +00:00