Your message indicated that your problem was that the connection was hanging. It made no mention of any tainting-related error messages. What happened?
I simply turned off Taint-Checking and it worked like a charm. I didn't receieve any taint checking error messages when I had it enabled. Now that I think about it, its pretty wierd that taint checking would cause my problem...