Update comments

This commit is contained in:
Přemysl Eric Janouch 2015-03-29 03:46:29 +02:00
parent 012930675e
commit 355ecaed47

View File

@ -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))