Changeset 38602
- Timestamp:
- 10/19/10 16:28:26 (19 months ago)
- Files:
-
- 1 modified
-
lang/perl/tiarra/trunk/module/Auto/FetchTitle.pm (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
lang/perl/tiarra/trunk/module/Auto/FetchTitle.pm
r37367 r38602 72 72 our $MAX_ACTIVE_REQUESTS = 3; 73 73 our $MAX_URLS_IN_SINGLE_MESSAGE = 3; 74 our $DEFAULT_RECV_LIMIT = 4*1024; # 4K bytes.75 our $DEFAULT_TIMEOUT = 3; # sec.74 our $DEFAULT_RECV_LIMIT = 64*1024; # 64K bytes. Damn amazon.co.jp! 75 our $DEFAULT_TIMEOUT = 10; # sec. 76 76 our $MAX_REDIRECTS = 5; 77 77 our $MAX_REDIRECTS_LIMIT = 20; … … 521 521 my $anchor; 522 522 ($url, $anchor) = split(/#/, $url, 2); 523 my $recv_limit = $this->config->recv_limit || $DEFAULT_RECV_LIMIT; 524 $this->_debug($full_ch_name, "recv_limit: $recv_limit"); 525 523 526 my $req = { 524 527 old => undef, # undef for first (non-redirect) request. … … 541 544 headers => {}, 542 545 cookies => [], # cookies for this request. 543 recv_limit => $ DEFAULT_RECV_LIMIT,546 recv_limit => $recv_limit, 544 547 max_redirects=> undef, # integer. 545 548 timeout => undef, … … 1194 1197 $DEBUG and $this->_debug($req, "debug: progress $rlen / $req->{recv_limit}"); 1195 1198 1199 1196 1200 if( my $addr = !$req->{addr_checked} && $req->{httpclient}->{addr} ) 1197 1201 { … … 2309 2313 2310 2314 # リクエストタイムアウトまでの時間(秒). 2311 timeout: 3 2315 # タイムアウトエラーが頻発するようならこの値を 2316 # 大きくしてください 2317 timeout: 10 2318 2319 # 取得するコンテンツのバイト数 2320 # イマドキのサイトはこれで十分のはずですが、 2321 # 遅い回線を使っている場合はこの値を小さく 2322 # してみてください。 2323 recv_limit: 65536 2312 2324 2313 2325 # 有効にするチャンネルとオプションとURLの設定.
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)