synopse / mORMot2

OpenSource RESTful ORM/SOA/MVC Framework for Delphi and FreePascal
https://synopse.info
Other
485 stars 122 forks source link

THttpServer - Process ClientSock don't capture RemotePort #249

Closed FernandoBanhos closed 2 months ago

FernandoBanhos commented 2 months ago

In the THttpServer.Process procedure when preparing THttpServerRequest (var req), ClientSock.fPort is equal to zero, and consequently it is also not transferred internally to the object

image

synopse commented 2 months ago

Why do you need the client port over HTTP? It does not make any common sense, because you don't have access to the socket, so you can 't do anything with this information. No Web server is providing this information, for a good reason. Please use the forum to discuss this.