V2EX lestly
 lestly's recent timeline updates
lestly

lestly

V2EX member #592019, joined on 2022-08-22 23:31:47 +08:00
MBEDTLS 使用 TLS1.3
信息安全    lestly    Jun 30, 2023    Lastly replied by hey3e
1
socket 释放失败
Linux    lestly    Nov 18, 2022    Lastly replied by lestly
11
EPOLL
Linux    lestly    Nov 9, 2022    Lastly replied by BingoXuan
3
close 异常
  •  1   
    Linux    lestly    Nov 8, 2022    Lastly replied by lestly
    11
    lestly's recent replies
    Nov 18, 2022
    Replied to a topic by lestly Linux socket 释放失败
    @tomychen 多谢,我又学到一点
    Nov 11, 2022
    Replied to a topic by lestly Linux socket 释放失败
    @liqinliqin 能确定执行了 close ,因为加了打印。但是在 /proc/pid/fd 却看到句柄还被占用着
    Nov 11, 2022
    Replied to a topic by lestly Linux socket 释放失败
    @liqinliqin 可能嵌入式设备并不支持这个
    Nov 11, 2022
    Replied to a topic by lestly Linux socket 释放失败
    @oceanthe1h 我的这个程序应该不存在父子进程这个场景,不过我会留意一下你说的这个点
    Nov 11, 2022
    Replied to a topic by lestly Linux socket 释放失败
    @Mohanson 我明白了
    div class="dock_area">
    Nov 8, 2022
    Replied to a topic by lestly Linux close 异常
    @ihciah 我的实现是这样的 A 线程创建 socket ,添加链表到 B 线程负责网络处理,我想这样应该不会引起多线程的占用 socket 的问题。我刚试了下,请求结束后,关闭连接时先 shutdown ,在 close ,还是会出现句柄释放不成功。
    这是我在 /proc/pid/fd ls -l 操作的结果
    lrwx------ 1 lestly lestly 64 11 月 8 15:25 10 -> 'socket:[208718]'
    close 后变成
    lr-x------ 1 lestly lestly 64 11 月 8 15:25 10 -> 'pipe:[208751]'
    Nov 8, 2022
    Replied to a topic by lestly Linux EPOLL
    @BingoXuan 是的,在我自己的测试 server 上,server 关闭,我的 epoll 客户端程序能收到 EPOLLIN ,并且我在测试 server 上直接 kill 掉,会发送 rst ,epoll 客户端也能收到 EPOLLERR 、EPOLLHUP 、EPOLLIN 、EPOLLOUT 。但是这一切当我把测试 server 换成公司的服务器就不同了,我只能正常在握手成功后收到 EPOLLOUT ,有数据接收收到 EPOLLIN 。无论怎样都收不到 EPOLLERR 和 EPOLLHUP 。我的 EPOLL 事件初始化是 stEvent.events = EPOLLOUT | EPOLLERR | EPOLLIN 。
    Nov 8, 2022
    Replied to a topic by lestly Linux close 异常
    Nov 8, 2022
    Replied to a topic by lestly Linux close 异常
    @ihciah 多谢,我试试
    Nov 8, 2022
    Replied to a topic by lestly Linux close 异常
    @ihciah 句柄是同一个 iNode ,只不过 ls -l 后原本描述的 socket 变成 pipe ,并且程序再也无法使用这个句柄
    About     Help     Advertise     Blog     API     FAQ     Solana     958 Online   Highest 6679       Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 16ms UTC 21:14 PVG 05:14 LAX 14:14 JFK 17:14
    Do have faith in what you're doing.
    ubao msn snddm index pchome yahoo rakuten mypaper meadowduck bidyahoo youbao zxmzxm asda bnvcg cvbfg dfscv mmhjk xxddc yybgb zznbn ccubao uaitu acv GXCV ET GDG YH FG BCVB FJFH CBRE CBC GDG ET54 WRWR RWER WREW WRWER RWER SDG EW SF DSFSF fbbs ubao fhd dfg ewr dg df ewwr ewwr et ruyut utut dfg fgd gdfgt etg dfgt dfgd ert4 gd fgg wr 235 wer3 we vsdf sdf gdf ert xcv sdf rwer hfd dfg cvb rwf afb dfh jgh bmn lgh rty gfds cxv xcv xcs vdas fdf fgd cv sdf tert sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf shasha9178 shasha9178 shasha9178 shasha9178 shasha9178 liflif2 liflif2 liflif2 liflif2 liflif2 liblib3 liblib3 liblib3 liblib3 liblib3 zhazha444 zhazha444 zhazha444 zhazha444 zhazha444 dende5 dende denden denden2 denden21 fenfen9 fenf619 fen619 fenfe9 fe619 sdf sdf sdf sdf sdf zhazh90 zhazh0 zhaa50 zha90 zh590 zho zhoz zhozh zhozho zhozho2 lislis lls95 lili95 lils5 liss9 sdf0ty987 sdft876 sdft9876 sdf09876 sd0t9876 sdf0ty98 sdf0976 sdf0ty986 sdf0ty96 sdf0t76 sdf0876 df0ty98 sf0t876 sd0ty76 sdy76 sdf76 sdf0t76 sdf0ty9 sdf0ty98 sdf0ty987 sdf0ty98 sdf6676 sdf876 sd876 sd876 sdf6 sdf6 sdf9876 sdf0t sdf06 sdf0ty9776 sdf0ty9776 sdf0ty76 sdf8876 sdf0t sd6 sdf06 s688876 sd688 sdf86