Permalink
Browse files

Merge pull request #64 from todd-richmond/master

Update transaction.rb
  • Loading branch information...
2 parents 50a6cd7 + 29d0c7a commit 6fe1b4715b723e33a88fe4c0920fdd666631e6f3 @dbussink dbussink committed Feb 13, 2014
Showing with 2 additions and 2 deletions.
  1. +2 −2 data_objects/lib/data_objects/transaction.rb
@@ -6,8 +6,8 @@ module DataObjects
class Transaction
- # The host name. Note, this relies on the host name being configured and resolvable using DNS
- HOST = "#{Socket::gethostbyname(Socket::gethostname)[0]}" rescue "localhost"
+ # The local host name. Do not attempt to resolve in DNS to prevent potentially long delay
+ HOST = "#{Socket::gethostname}" rescue "localhost"
@@counter = 0
# The connection object allocated for this transaction

0 comments on commit 6fe1b47

Please sign in to comment.