Skip to content
项目
群组
代码片段
帮助
正在加载...
登录
切换导航
F
freeswitch
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
张华
freeswitch
Commits
8abc16f5
提交
8abc16f5
authored
8月 08, 2016
作者:
Anthony Minessale
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
FS-8761
上级
1e7b4a13
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
25 行增加
和
11 行删除
+25
-11
.update
libs/sofia-sip/.update
+1
-1
tport_type_ws.c
libs/sofia-sip/libsofia-sip-ua/tport/tport_type_ws.c
+23
-9
tport_ws.h
libs/sofia-sip/libsofia-sip-ua/tport/tport_ws.h
+1
-1
没有找到文件。
libs/sofia-sip/.update
浏览文件 @
8abc16f5
Sat Aug 6 11:48:53
CDT 2016
Mon Aug 8 16:39:35
CDT 2016
libs/sofia-sip/libsofia-sip-ua/tport/tport_type_ws.c
浏览文件 @
8abc16f5
...
@@ -494,6 +494,8 @@ int tport_ws_init_secondary(tport_t *self, int socket, int accepted,
...
@@ -494,6 +494,8 @@ int tport_ws_init_secondary(tport_t *self, int socket, int accepted,
return
*
return_reason
=
"WS_INIT"
,
-
1
;
return
*
return_reason
=
"WS_INIT"
,
-
1
;
}
}
wstp
->
connected
=
time
(
NULL
);
wstp
->
ws_initialized
=
1
;
wstp
->
ws_initialized
=
1
;
self
->
tp_pre_framed
=
1
;
self
->
tp_pre_framed
=
1
;
...
@@ -594,19 +596,31 @@ int tport_ws_next_timer(tport_t *self,
...
@@ -594,19 +596,31 @@ int tport_ws_next_timer(tport_t *self,
char
const
**
return_why
)
char
const
**
return_why
)
{
{
tport_ws_t
*
wstp
=
(
tport_ws_t
*
)
self
;
tport_ws_t
*
wstp
=
(
tport_ws_t
*
)
self
;
int
ll
=
establish_logical_layer
(
&
wstp
->
ws
);
if
(
establish_logical_layer
(
&
wstp
->
ws
)
<
0
)
{
int
punt
=
0
;
if
(
wstp
->
tos
++
==
1
)
{
tport_close
(
self
);
if
(
ll
==
-
1
)
{
SU_DEBUG_7
((
"%s(%p): %s to "
TPN_FORMAT
"%s
\n
"
,
punt
=
1
;
__func__
,
(
void
*
)
self
,
}
else
if
(
ll
<
0
)
{
"timeout establishing connection
\n
"
,
TPN_ARGS
(
self
->
tp_name
),
""
));
time_t
now
=
time
(
NULL
);
return
-
1
;
if
(
now
-
wstp
->
connected
>
5
)
{
punt
=
2
;
}
}
}
else
{
}
else
{
self
->
tp_params
->
tpp_keepalive
=
3000
0
;
self
->
tp_params
->
tpp_keepalive
=
0
;
}
}
if
(
punt
)
{
tport_close
(
self
);
SU_DEBUG_7
((
"%s(%p): %s to "
TPN_FORMAT
"%s
\n
"
,
__func__
,
(
void
*
)
self
,
(
punt
==
2
?
"Timeout establishing SSL"
:
"Error establishing SSL"
),
TPN_ARGS
(
self
->
tp_name
),
""
));
return
-
1
;
}
return
return
tport_next_recv_timeout
(
self
,
return_target
,
return_why
)
|
tport_next_recv_timeout
(
self
,
return_target
,
return_why
)
|
tport_next_keepalive
(
self
,
return_target
,
return_why
);
tport_next_keepalive
(
self
,
return_target
,
return_why
);
...
...
libs/sofia-sip/libsofia-sip-ua/tport/tport_ws.h
浏览文件 @
8abc16f5
...
@@ -59,7 +59,7 @@ typedef struct tport_ws_s {
...
@@ -59,7 +59,7 @@ typedef struct tport_ws_s {
char
wstp_buffer
[
65536
];
char
wstp_buffer
[
65536
];
size_t
wstp_buflen
;
size_t
wstp_buflen
;
SU_S8_T
ws_initialized
;
SU_S8_T
ws_initialized
;
unsigned
char
tos
;
time_t
connected
;
unsigned
ws_secure
:
1
;
unsigned
ws_secure
:
1
;
unsigned
:
0
;
unsigned
:
0
;
}
tport_ws_t
;
}
tport_ws_t
;
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论