What is the technique in which the client sends a request to the server, and the server holds the response until it either times out or has information to send to the client is
A. HTTP polling
B. HTTP long polling
C. WebSockets
D. HTTP request-response
Answer:
B
Explanation
A. Incorrect: In HTTP polling, the client sends a request to the server, and as soon as the response is returned, it sends a new request.
B. Correct: In HTTP long polling, the client sends a request to the server, and the server holds it open until it either has something to return to the client or the conÂnection times out.
C. Incorrect: WebSockets are a way for two-way communication between the client and the server. The server does not hold onto the response.
D. Incorrect: The request-response path is a traditional HTTP connection.