2004-09-28 Ben Maurer <bmaurer@ximian.com>

* server/XSPApplicationHost.cs: rather than pass an ip addr
	across appdomains as a string, pass it as a long. this avoids
	the cost of making it into a string, and related allocations.

svn path=/trunk/xsp/; revision=34501
This commit is contained in:
Ben Maurer 2004-09-28 23:18:46 +00:00
Родитель 19d66d127d
Коммит b1dfe84845
2 изменённых файлов: 11 добавлений и 5 удалений

Просмотреть файл

@ -1,3 +1,9 @@
2004-09-28 Ben Maurer <bmaurer@ximian.com>
* server/XSPApplicationHost.cs: rather than pass an ip addr
across appdomains as a string, pass it as a long. this avoids
the cost of making it into a string, and related allocations.
2004-09-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
* server/ApplicationServer.cs: application server never dies.

Просмотреть файл

@ -88,13 +88,13 @@ namespace Mono.ASPNET
//
public class XSPApplicationHost : BaseApplicationHost
{
public void ProcessRequest (int reqId, string localEPAddr, int localEPPort, string remoteEPAdds,
public void ProcessRequest (int reqId, long localEPAddr, int localEPPort, long remoteEPAdds,
int remoteEPPort, string verb, string path, string pathInfo,
string queryString, string protocol, byte [] inputBuffer, string redirect)
{
XSPRequestBroker broker = (XSPRequestBroker) RequestBroker;
IPEndPoint localEP = new IPEndPoint (IPAddress.Parse (localEPAddr), localEPPort);
IPEndPoint remoteEP = new IPEndPoint (IPAddress.Parse (remoteEPAdds), remoteEPPort);
IPEndPoint localEP = new IPEndPoint (localEPAddr, localEPPort);
IPEndPoint remoteEP = new IPEndPoint (remoteEPAdds, remoteEPPort);
XSPWorkerRequest mwr = new XSPWorkerRequest (reqId, broker, this, localEP, remoteEP, verb, path,
pathInfo, queryString, protocol, inputBuffer);
@ -207,8 +207,8 @@ namespace Mono.ASPNET
string redirect;
vapp.Redirect (rdata.Path, out redirect);
host.ProcessRequest (requestId, localEP.Address.ToString(), localEP.Port,
remoteEP.Address.ToString(), remoteEP.Port, rdata.Verb,
host.ProcessRequest (requestId, localEP.Address.Address, localEP.Port,
remoteEP.Address.Address, remoteEP.Port, rdata.Verb,
rdata.Path, rdata.PathInfo, rdata.QueryString,
rdata.Protocol, rdata.InputBuffer, redirect);
} catch (Exception e) {