Changed getSocketConnection to store and use the stored connection, because the function took up a significant amount of time as shown by profiling. (Most of it was gethostbyname.)
Merge pull request #16 from janoszen/master

Buffering of getSocketConnection
Merge pull request #1 from Graylog2/master

Pull