Commit Graph
8 Commits
Author SHA1 Message Date
J. Ryan Stinnett dcb62bf231 Bug 1059001 - Part 4: Pass encryption through via discovery. r=past 2014-12-10 20:55:52 -06:00
J. Ryan Stinnett 0a47176c20 Bug 1059001 - Part 3: Add encryption socket option. r=past 2014-12-10 20:55:52 -06:00
J. Ryan Stinnett 109ebed196 Bug 1059001 - Part 2: Move discovery into socket listener. r=past
Don't make the socket listener set up discover manually.  Also, future additions
(authentication) for WiFi debugging will add extra information to the discovery
packet.
2014-12-10 20:55:51 -06:00
J. Ryan Stinnett f300b2e843 Bug 1059001 - Part 1a: Separate create and open listener. r=past
Break up the steps of creating a socket listener and opening it.  This allows
more socket options beyond port / path to be added and controlled more
naturally, instead of jamming them into the open method.
2014-12-10 20:55:51 -06:00
J. Ryan Stinnett 4c7a28ca02 Bug 1058997 - Part 4: Only one DebuggerServer per loader. r=past
It was never necessary to pass a server reference to the socket listener, since
a given DevTools loader only ever contains a single server instance.
2014-12-01 22:55:56 -08:00
J. Ryan Stinnett f7e016b8fc Bug 1058997 - Part 3a: Move allowConnection to socket listener. r=past
In the future with multiple types of socket listeners (bare TCP vs. TLS), each
will need its own logic for allowing connection.  This is moved to the listener
level, rather than living at the level of the entire server.
2014-12-01 22:55:56 -08:00
J. Ryan Stinnett 289b8ad4cf Bug 1058997 - Part 2: Debugger socket style cleanup. r=past 2014-12-01 22:55:56 -08:00
J. Ryan Stinnett 78ead7cad4 Bug 1058997 - Part 1: Extract socket connect and listen. r=past
Relocate the debugger client's connect and server's listen functionality in a
separate file.  This isolates the security-sensitive socket handling pieces, and
also enables easier extension to make room for TLS sockets.
2014-12-01 22:55:56 -08:00