```ruby
module EPPClient
  module HostmasterConnection
    def send_frame(xml)
      @sent_frame = xml
      @socket.write([xml.bytesize + 4].pack("N") + xml)
      sent_frame_to_xml
    end
  end
end```

Fix bug with concatination xml with length of packet
user
```ruby
module EPPClient
  module HostmasterConnection
    def send_frame(xml)
      @sent_frame = xml
      @socket.write [xml.bytesize + 4].pack("N")
      @socket.write xml
      sent_frame_to_xml
    end
  end
end```
assistant