TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

An IRC client in PicoLisp

17 pointsby chlover 10 years ago

1 comment

merlincoreyover 10 years ago
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 未加载