File tree Expand file tree Collapse file tree
java/run/ikaros/plugin/pan115/repository Expand file tree Collapse file tree Original file line number Diff line number Diff line change 22
33更新日志文档,版本顺序从新到旧,最新版本在最前(上)面。
44
5+ # 1.0.11
6+
7+ - 增加webclient的缓冲区大小
8+
59# 1.0.10
610
711- 修正CI编译的文件名称
Original file line number Diff line number Diff line change 11group =run.ikaros.plugin
22description =A pan115 plugin for ikaros.
3- version =1.0.9
3+ version =1.0.11
Original file line number Diff line number Diff line change 1616import org .springframework .util .LinkedMultiValueMap ;
1717import org .springframework .util .MultiValueMap ;
1818import org .springframework .web .client .HttpClientErrorException ;
19+ import org .springframework .web .reactive .function .client .ExchangeStrategies ;
1920import org .springframework .web .reactive .function .client .WebClient ;
2021import org .springframework .web .util .UriComponentsBuilder ;
2122import reactor .core .publisher .Flux ;
@@ -54,8 +55,14 @@ public Mono<Boolean> assertDomainReachable() {
5455
5556 @ Override
5657 public void refreshHttpHeaders (String accessToken ) {
57- log .debug ("refresh rest template headers..." );
58+ log .debug ("refresh webclient headers..." );
59+ // 增大内存缓冲区限制,例如设为10MB
60+ final int size = 10 * 1024 * 1024 ;
61+ final ExchangeStrategies strategies = ExchangeStrategies .builder ()
62+ .codecs (configurer -> configurer .defaultCodecs ().maxInMemorySize (size ))
63+ .build ();
5864 webClient = WebClient .builder ()
65+ .exchangeStrategies (strategies )
5966 .baseUrl (Pan115Const .API_BASE )
6067 .defaultHeader (HttpHeaders .USER_AGENT , REST_TEMPLATE_USER_AGENT )
6168 .defaultHeader (HttpHeaders .COOKIE , "chii_searchDateLine=0" )
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ name: PluginPan115
44# plugin entry class that extends BasePlugin
55clazz : run.ikaros.plugin.pan115.Pan115Plugin
66# plugin 'version' is a valid semantic version string (see semver.org).
7- version : 1.0.9
7+ version : 1.0.11
88requires : " >=1.0.6"
99author :
1010 name : Ikaros OSS Team
You can’t perform that action at this time.
0 commit comments