aboutsummaryrefslogtreecommitdiff
path: root/zyklonb.c
diff options
context:
space:
mode:
Diffstat (limited to 'zyklonb.c')
-rw-r--r--zyklonb.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/zyklonb.c b/zyklonb.c
index 8785095..5426604 100644
--- a/zyklonb.c
+++ b/zyklonb.c
@@ -360,8 +360,6 @@ irc_establish_connection (struct bot_context *ctx,
{
struct addrinfo gai_hints, *gai_result, *gai_iter;
memset (&gai_hints, 0, sizeof gai_hints);
-
- // We definitely want TCP.
gai_hints.ai_socktype = SOCK_STREAM;
int err = getaddrinfo (host, port, &gai_hints, &gai_result);
@@ -666,7 +664,8 @@ setup_recovery_handler (struct bot_context *ctx)
// get ident'ed against. In the latter version, it forms a pair with the
// password field and doesn't need to be an actual user on your machine.
-// TODO: make a non-blocking poller-based version of this; we need c-ares
+// TODO: make a non-blocking poller-based version of this;
+// either use c-ares or (even better) start another thread to do resolution
struct socks_addr
{
@@ -1160,7 +1159,7 @@ plugin_queue_write (struct plugin_data *plugin)
if (plugin->is_zombie)
return;
- // Don't let the write buffer grow infinitely. If there's a ton of data
+ // Don't let the write buffer grow indefinitely. If there's a ton of data
// waiting to be processed by the plugin, it usually means there's something
// wrong with it (such as someone stopping the process).
if (plugin->write_buffer.len >= (1 << 20))