Project

General

Profile

« Previous | Next » 

Revision 61a67fe2

Added by Nathan Scott over 15 years ago

  • ID 61a67fe244c8b2bec83b31766012c79b1a808e5e

Robustness improvements on pmproxy connection setup, server side.

Several changes to same section of code:

  • When reporting errors, use __pmNotifyErr for logging errors, so we have timestamps in the logs.
  • Initialise the per-client pmcd_fd field to a negative value in the setup code, early-on. Otherwise when we call DeleteClient, we may close some random unrelated file descriptor. Its highly likely that this is the cause of the running-but-not-listening pmproxy problem.
  • User send/recv for socket operations so this code will work on Windows as well.
  • Improve error reporting when partially setup connections fail, in particular the host/port string - if no host received, do not attempt to decode the (non-existent) port, report the host error.
  • added
  • modified
  • copied
  • renamed
  • deleted