]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
TODO: telnet - exit immediately upon connection if stdin is /dev/null
authorDaniel Stenberg <daniel@haxx.se>
Sun, 24 Apr 2022 21:07:43 +0000 (23:07 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Sun, 24 Apr 2022 21:07:43 +0000 (23:07 +0200)
Suggested-by: Robin A. Meade
URL: https://curl.se/mail/archive-2022-04/0027.html

docs/TODO

index 3d828203d96353678370161abd0ef97a2e93c96c..8ddfcc0c839b3c4a90e9238bc6d8ee7041865a81 100644 (file)
--- a/docs/TODO
+++ b/docs/TODO
@@ -81,6 +81,7 @@
  6.1 ditch stdin
  6.2 ditch telnet-specific select
  6.3 feature negotiation debug data
+ 6.4 exit immediately upon connection if stdin is /dev/null
 
  7. SMTP
  7.1 Passing NOTIFY option to CURLOPT_MAIL_RCPT
 
  Add telnet feature negotiation data to the debug callback as header data.
 
+6.4 exit immediately upon connection if stdin is /dev/null
+
+ If it did, curl could be used to probe if there's an server there listening
+ on a specific port. That is, the following command would exit immediately
+ after the connection is established with exit code 0:
+
+    curl -s --connect-timeout 2 telnet://example.com:80 </dev/null
 
 7. SMTP