Skip to content
项目
群组
代码片段
帮助
正在加载...
登录
切换导航
F
freeswitch
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
张华
freeswitch
Commits
3d9365ed
提交
3d9365ed
authored
1月 28, 2018
作者:
Marc Olivier Chouinard
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
FS-10496: [mod_v8] Fixing regression from FS-10496 when no settings exist in v8.conf.
上级
87bb7cb5
隐藏空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
3 行增加
和
7 行删除
+3
-7
mod_v8.cpp
src/mod/languages/mod_v8/mod_v8.cpp
+3
-7
没有找到文件。
src/mod/languages/mod_v8/mod_v8.cpp
浏览文件 @
3d9365ed
...
...
@@ -358,12 +358,6 @@ static void load_configuration(void)
}
}
#if defined(V8_MAJOR_VERSION) && V8_MAJOR_VERSION >=5
if
(
zstr
(
globals
.
script_caching
))
{
globals
.
script_caching
=
switch_core_strdup
(
globals
.
pool
,
"disabled"
);
}
#endif
for
(
hook
=
switch_xml_child
(
settings
,
"hook"
);
hook
;
hook
=
hook
->
next
)
{
char
*
event
=
(
char
*
)
switch_xml_attr_soft
(
hook
,
"event"
);
char
*
subclass
=
(
char
*
)
switch_xml_attr_soft
(
hook
,
"subclass"
);
...
...
@@ -533,7 +527,7 @@ void LoadScript(MaybeLocal<v8::Script> *v8_script, Isolate *isolate, const char
Do not cache if the caching is disabled
Do not cache inline scripts
*/
if
(
!
s
trcasecmp
(
globals
.
script_caching
,
"disabled"
)
||
!
strcasecmp
(
globals
.
script_caching
,
"false"
)
||
!
strcasecmp
(
globals
.
script_caching
,
"no"
)
||
!
strcasecmp
(
script_file
,
"inline"
)
||
zstr
(
script_file
))
{
if
(
!
s
witch_true
(
globals
.
script_caching
)
||
!
strcasecmp
(
script_file
,
"inline"
)
||
zstr
(
script_file
))
{
options
=
ScriptCompiler
::
kNoCompileOptions
;
perf_log
(
"Javascript caching is disabled.
\n
"
,
script_file
);
}
else
{
...
...
@@ -1212,6 +1206,8 @@ SWITCH_MODULE_LOAD_FUNCTION(mod_v8_load)
globals
.
v8platform
=
NULL
;
globals
.
cache_expires_seconds
=
0
;
globals
.
performance_monitor
=
false
;
globals
.
script_caching
=
switch_core_strdup
(
globals
.
pool
,
"disabled"
);
JSMain
::
Initialize
(
&
globals
.
v8platform
);
switch_core_hash_init
(
&
globals
.
compiled_script_hash
);
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论