Skip to content
项目
群组
代码片段
帮助
正在加载...
登录
切换导航
F
freeswitch
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
张华
freeswitch
Commits
c6e9b994
提交
c6e9b994
authored
4月 24, 2013
作者:
Anthony Minessale
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
FS-5325
上级
66d1755b
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
7 行增加
和
2 行删除
+7
-2
.update
libs/iksemel/.update
+1
-0
stream.c
libs/iksemel/src/stream.c
+6
-2
没有找到文件。
libs/iksemel/.update
浏览文件 @
c6e9b994
Wed Apr 24 10:12:23 CDT 2013
libs/iksemel/src/stream.c
浏览文件 @
c6e9b994
...
...
@@ -93,7 +93,7 @@ static int sock_read_ready(struct stream_data *data, int ms)
int
s
=
0
,
r
=
0
;
pfds
[
0
].
fd
=
SSL_get_fd
(
data
->
ssl
);
pfds
[
0
].
events
|=
POLLIN
;
pfds
[
0
].
events
=
POLLIN
|
POLLHUP
|
POLLERR
;
s
=
poll
(
pfds
,
1
,
ms
);
...
...
@@ -103,6 +103,8 @@ static int sock_read_ready(struct stream_data *data, int ms)
}
else
if
(
s
>
0
)
{
if
((
pfds
[
0
].
revents
&
POLLIN
))
{
r
=
1
;
}
else
if
((
pfds
[
0
].
revents
&
POLLHUP
)
||
(
pfds
[
0
].
revents
&
POLLERR
))
{
r
=
-
1
;
}
}
...
...
@@ -690,7 +692,9 @@ iks_recv (iksparser *prs, int timeout)
}
else
if
(
ret
==
0
)
{
return
IKS_OK
;
}
else
{
len
=
SSL_read
(
data
->
ssl
,
data
->
buf
,
NET_IO_BUF_SIZE
-
1
);
do
{
len
=
SSL_read
(
data
->
ssl
,
data
->
buf
,
NET_IO_BUF_SIZE
-
1
);
}
while
(
len
==
-
1
&&
(
errno
==
EAGAIN
||
errno
==
EINTR
||
SSL_get_error
(
data
->
ssl
,
len
)
==
SSL_ERROR_WANT_READ
));
}
if
(
len
<=
0
)
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论