TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

An IRC client in PicoLisp

17 点作者 chl超过 10 年前

1 comment

merlincorey超过 10 年前
The IRC server actually is what is supposed to send PING to clients which have no detected activity within a given interval. The client is supposed to respond with PONG. This is straight out of RFC 1459[1]:<p><pre><code> The PING message is used to test the presence of an active client at the other end of the connection. A PING message is sent at regular intervals if no other activity detected coming from a connection. If a connection fails to respond to a PING command within a set amount of time, that connection is closed. </code></pre> [1] <a href="https://tools.ietf.org/html/rfc1459#section-4.6.2" rel="nofollow">https:&#x2F;&#x2F;tools.ietf.org&#x2F;html&#x2F;rfc1459#section-4.6.2</a><p>So it seems this client is simply sending data on a regular interval, but it is not sending correct data and will certainly not work on all servers or networks (such as networks with a smaller ping interval than 200 seconds).<p>I may just be an old unix beard now, but I remember when reading the RFC was standard for your home-grown clients.
评论 #8877637 未加载