This repository has been archived by the owner on Jun 24, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 61
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implemented functions for WebSockets and Secure WebSockets support. The process for treating HTTP requests in core.c has then been changed: 1. for every new request with a CONNECT, create_http_socket() will peak into the next request to determine if the next message contains binary (i.e encrypted) content. If so, proceed with ssl/tls interception routine. This is because WebSocket RFC forces the next message to be GET / blah if it is a handshake. 2. for every request mark as `new` in core.c:proxenet_process_http_request(), try to determine if the GET request is a WebSocket handshake. If so, update the request headers (`proto_type` and `proto` fields) to mark the request as WS (or WSS if ssl intercepted) so that further iteraction in proxenet_process_http_request() main loop does not conflict with regular HTTP (or HTTPS) requests.
- Loading branch information
hugsy
committed
Nov 26, 2016
1 parent
402a558
commit dd66308
Showing
4 changed files
with
105 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters