Some progress.... Worked around double handshake by libtorrent. But still hanging after setting proxy settings on Libtorrent session. Need to investigate from which thread we are caling it. My guess is the RawServer thread which should be correct?