winlin

for #319, copy all data to request for source.

@@ -1677,6 +1677,7 @@ SrsRequest* SrsRequest::copy() @@ -1677,6 +1677,7 @@ SrsRequest* SrsRequest::copy()
1677 SrsRequest* cp = new SrsRequest(); 1677 SrsRequest* cp = new SrsRequest();
1678 1678
1679 cp->ip = ip; 1679 cp->ip = ip;
  1680 + cp->vhost = vhost;
1680 cp->app = app; 1681 cp->app = app;
1681 cp->objectEncoding = objectEncoding; 1682 cp->objectEncoding = objectEncoding;
1682 cp->pageUrl = pageUrl; 1683 cp->pageUrl = pageUrl;
@@ -1687,7 +1688,6 @@ SrsRequest* SrsRequest::copy() @@ -1687,7 +1688,6 @@ SrsRequest* SrsRequest::copy()
1687 cp->stream = stream; 1688 cp->stream = stream;
1688 cp->swfUrl = swfUrl; 1689 cp->swfUrl = swfUrl;
1689 cp->tcUrl = tcUrl; 1690 cp->tcUrl = tcUrl;
1690 - cp->vhost = vhost;  
1691 cp->duration = duration; 1691 cp->duration = duration;
1692 if (args) { 1692 if (args) {
1693 cp->args = args->copy()->to_object(); 1693 cp->args = args->copy()->to_object();
@@ -1702,6 +1702,16 @@ void SrsRequest::update_auth(SrsRequest* req) @@ -1702,6 +1702,16 @@ void SrsRequest::update_auth(SrsRequest* req)
1702 swfUrl = req->swfUrl; 1702 swfUrl = req->swfUrl;
1703 tcUrl = req->tcUrl; 1703 tcUrl = req->tcUrl;
1704 1704
  1705 + ip = req->ip;
  1706 + vhost = req->vhost;
  1707 + app = req->app;
  1708 + objectEncoding = req->objectEncoding;
  1709 + host = req->host;
  1710 + port = req->port;
  1711 + param = req->param;
  1712 + schema = req->schema;
  1713 + duration = req->duration;
  1714 +
1705 if (args) { 1715 if (args) {
1706 srs_freep(args); 1716 srs_freep(args);
1707 } 1717 }