You could run into a situation where you need to make multiple server requests from same browser page (or rather session). We would expect the requests to be served in parallel but they rather go sequential. Behavior of session-enabled requests handling by asp.net is important to be known to handle this case. Session State is read-write for pages by default. In this case, any request gets exclusive lock to the session object. So, the other requests from the same session (even if it requires only read access to the session) will have to wait until the lock is released either by completing the first request or timeout on the lock by first request.
Ftp clients tell us to switch to PASV mode if you are behind firewall. Why so? The answer lies in the way FTP protocol works between client and server. There are 2 channels created between client and server: 1 for commands and 2nd for data. Let's take this example: You wanna receive a file from server. Client sends the command to server to receive a file through first channel. Now the 2nd channel has to be established to transfer the file from server to client. In normal mode, client starts listening on a port (act as server) and tells the server its ip and the port. Now server connects to client at the specified port and sends file. When there is firewall on client, it might block server to connect to client and that's the reason PASV (passive) mode is required. In passive mode , client tells the server to enter passive mode in response to that server listens on a port and sends the port number to client where client connects to the server at the specified port and receiv...
Comments
Post a Comment