DCCSock: Make sure we don't cache too much data in memory
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: 3ad904ec35b89a071badd9cb0113dfe58093e920@1463 726aef4b-f618-498e-8847-2d620e286838

BtbN/znc,Mikaela/znc,badloop/znc,aarondunlap/znc,anthonyryan1/znc,TuffLuck/znc,elyscape/znc,YourBNC/znc,Phansa/znc,Phansa/znc,YourBNC/znc,Mikaela/znc,badloop/znc,elyscape/znc,Kriechi/znc,Kriechi/nobnc,anthonyryan1/znc,jreese/znc,Adam-/znc,Adam-/znc,reedloden/znc,dgw/znc,DarthGandalf/znc,jpnurmi/znc,evilnet/znc,KielBNC/znc,dgw/znc,withinsoft/znc,trisk/znc,trisk/znc,aarondunlap/znc,TingPing/znc,anthonyryan1/znc,aarondunlap/znc,KiNgMaR/znc,znc/znc,DarthGandalf/znc,trisk/znc,jantman/znc,TuffLuck/znc,TuffLuck/znc,Zarthus/znc,wolfy1339/znc,ollie27/znc,YourBNC/znc,trisk/znc,BtbN/znc,psychon/znc,withinsoft/znc,KiNgMaR/znc,Hasimir/znc,reedloden/znc,jpnurmi/znc,reedloden/znc,Adam-/znc,KielBNC/znc,ollie27/znc,Mkaysi/znc,Mikaela/znc,TuffLuck/znc,KiNgMaR/znc,TingPing/znc,withinsoft/znc,wolfy1339/znc,Kriechi/nobnc,jpnurmi/znc,jantman/znc,aarondunlap/znc,znc/znc,Hasimir/znc,DarthGandalf/znc,KiNgMaR/znc,jreese/znc,dgw/znc,TuffLuck/znc,badloop/znc,elyscape/znc,ollie27/znc,kashike/znc,jpnurmi/znc,Zarthus/znc,znc/znc,DarthGandalf/znc,Phansa/znc,kashike/znc,jreese/znc,anthonyryan1/znc,Kriechi/znc,evilnet/znc,GLolol/znc,TingPing/znc,Mikaela/znc,ollie27/znc,ollie27/znc,kashike/znc,badloop/znc,TingPing/znc,dgw/znc,reedloden/znc,anthonyryan1/znc,TuffLuck/znc,Zarthus/znc,jantman/znc,markusj/znc,Mkaysi/znc,jreese/znc,GLolol/znc,psychon/znc,Mkaysi/znc,evilnet/znc,znc/znc,markusj/znc,YourBNC/znc,Mkaysi/znc,DarthGandalf/znc,markusj/znc,jreese/znc,TingPing/znc,anthonyryan1/znc,GLolol/znc,BtbN/znc,Kriechi/znc,Kriechi/znc,wolfy1339/znc,evilnet/znc,jpnurmi/znc,Hasimir/znc,elyscape/znc,evilnet/znc,BtbN/znc,reedloden/znc,GLolol/znc,wolfy1339/znc,badloop/znc,Mikaela/znc,Zarthus/znc,aarondunlap/znc,KielBNC/znc,KiNgMaR/znc,jantman/znc,jpnurmi/znc,trisk/znc,Adam-/znc,Mkaysi/znc,wolfy1339/znc,jantman/znc,Mkaysi/znc,KielBNC/znc,Adam-/znc,psychon/znc,Kriechi/znc,Phansa/znc,jpnurmi/znc,withinsoft/znc,reedloden/znc,wolfy1339/znc,KielBNC/znc,Zarthus/znc,TuffLuck/znc,ollie27/znc,Mikaela/znc,kashike/znc,Mikaela/znc,Kriechi/znc,dgw/znc,kashike/znc,jantman/znc,Hasimir/znc,badloop/znc,DarthGandalf/znc,Hasimir/znc,withinsoft/znc,GLolol/znc,KielBNC/znc,TingPing/znc,YourBNC/znc,anthonyryan1/znc,trisk/znc,elyscape/znc,kashike/znc,markusj/znc,Hasimir/znc,YourBNC/znc,aarondunlap/znc,elyscape/znc,markusj/znc,withinsoft/znc,Kriechi/nobnc,jreese/znc,psychon/znc,Hasimir/znc,psychon/znc,psychon/znc,KiNgMaR/znc,Phansa/znc,dgw/znc,aarondunlap/znc,BtbN/znc,Adam-/znc,Zarthus/znc,markusj/znc,Phansa/znc,Adam-/znc,Mkaysi/znc,BtbN/znc,badloop/znc,znc/znc,GLolol/znc,evilnet/znc,znc/znc