WEB开发网      婵犻潧鍊婚弲顐︽偟椤栨稓闄勯柦妯侯槸閻庤霉濠婂骸浜剧紒杈ㄥ笚閹峰懘鎮╅崹顐ゆ殸婵炴垶鎸撮崑鎾趁归悩鐑橆棄闁搞劌瀛╃粋宥夘敃閿濆柊锕傛煙鐎涙ê鐏f繝濠冨灴閹啴宕熼鍡╀紘婵炲濮惧Λ鍕叏閳哄懎绀夋繛鎴濈-楠炪垽鎮归崶褍妲婚柛銊ュ缁傚秹鏁撻敓锟� ---闂佹寧娲╅幏锟�
开发学院服务器FTP服务器 ProFTPD和WU-FTP的BANDWIDTH控制 阅读

ProFTPD和WU-FTP的BANDWIDTH控制

 2007-06-12 00:00:00 来源:WEB开发网 闂侀潧妫撮幏锟�闂佸憡鍨电换鎰版儍椤掑倵鍋撳☉娆嶄沪缂傚稄鎷�婵犫拃鍛粶闁靛洤娲ㄩ埀顒佺⊕閵囩偟绱為敓锟�闂侀潧妫撮幏锟�  闂佺ǹ绻楀▍鏇㈠极閻愭娑樷枎閹邦剛娉氶梺鍛婎殔濞层劌鈻撻幋婵愬殫妞ゆ梻鍘х憴锟�
核心提示: + * at 2048 Bytes/sec. + * - if there is three or more connections, each files will be + * transfered at "4096/connections" Bytes/sec. + *

+ * at 2048 Bytes/sec. + * - if there is three or more connections, each files will be

+ * transfered at "4096/connections" Bytes/sec. + * + * Note : If transfer file size is lower than the "MaxBandWidth" rate , + * it will ignore the limit. + * + * - MinBandWidth + * Syntax : MinBandWidth + * Default : none + * Context : server config,, + * + * Set a minimal bandwidth to use for file-transfer. (retr only) + * This over-ride both BandWidth and MaxBandWidth rules as well + * as the calculated rate based on the number of connections. + * + * The is in Bytes/second. + * A of "0" means no bandwidth limit. + * + * Example : + * If BandWidth is set to "3072" (2KBytes/sec) and MinBandWidth + * is set to "1024" (1KBytes/sec) that means : + * - if there is one connection, the file will be transfered + * at 3072 Bytes/sec. + * - if there is two connections, each files will be transfered

+ * at 1536 Bytes/sec. + * - if there is three or more connections, each files will be

+ * transfered at 1024 Bytes/sec. (Minimal of 1024 Bytes/sec).

+ * + * Note : If transfer file size is lower than the "MinBandWidth" rate , + * it will ignore the limit. + * + */ + #include "conf.h" #ifdef HAVE_REGEX_H #include #endif +#include + +#undef timerisset +#define timerisset(tvp) ((tvp)->tv_sec || (tvp)->tv_us ec) +#undef timerclear +#define timerclear(tvp) ((tvp)->tv_sec tvp)->tv_usec □

上一页  1 2 3 4 5 6  下一页

Tags:ProFTPD WU FTP

编辑录入:爽爽 [复制链接] [打 印]
赞助商链接