Commit Graph

11 Commits

Author SHA1 Message Date
AJ ONeal 3597ebff28 minor refactor 2020-04-28 00:26:00 -06:00
tigerbot c1c18b71b0 added support for different port w/ different domains on same service 2017-04-03 17:56:28 -06:00
tigerbot 3848be53bd tweaked behavior after local connection read 2017-04-03 15:51:44 -06:00
tigerbot fbed26d94b changed client to retry after disconnect 2017-03-30 18:20:44 -06:00
tigerbot c80c87c667 changed the routine structure of the client 2017-03-30 18:20:37 -06:00
tigerbot 99676ef4bf made it easier to send multiple messages with the same header 2017-03-30 13:28:00 -06:00
tigerbot 663caa5cc7 first commit of client
hard coded values and fairly limited error handling
2017-03-29 18:29:03 -06:00
Henry Camacho d7e01e8b40 Adjusted to remove excessive packages.
Moved XLATE into generic listener.
2017-03-07 19:34:16 -06:00
Henry Camacho ff3e63da8d Correcting Critical Bug
- when testing streams to WSS client, I caused tunnel.js to abort in xfer.
- this caused a panic in go.
- found that connection was reaped and garbage collected during send routines.
- placed synchronize around a connection states.
- moved connection creation into connection table.
- allowed connections to hang around while in a false state…
- will have a go routine remove them after some idle time and connections being false.
2017-02-19 14:05:06 -06:00
Henry Camacho 07380af871 lots of changes
- debugging issues (not resolved) attempting to move the main executable into the base directory, this did not solve the issue, keeping it here.  A main.go and the executable.
listener_client — the WSS client
- removed support for anything admin
- injected the domains from the claim
- domains are now included as initialDomains
- registration performans as normal but includes adding the domains to a map of domains, and a collection of domains on the connection.
- the system now supports look up fast in either direction, not sure if it will be needed.
- reads a chan during registration before allowing traffic, making sure all is well.
- registration returns a true on the channel if all is well.   If it is not, false.  Likely will add some text to pass back.

Connection
- added support for boolean channel
- support for initial domains in a slice, these are brought back from the JWT as a interface and then are type asserted into the map
- removed all the old timer sender dwell stuff as a POC for traffic counts.

ConnectionTable
- added support for domain announcement after the WSS is connection.  Not sure if we will need these.  They have not been implemented.
- I assume all domains are registered with JWT unless I hear differently which would require a new WSS session
- expanded NewTable constructor
- populating domains into the domain map, and into the connection slice.
- added support for removing domains when a connection is removed.
2017-02-12 14:39:50 -06:00
Henry Camacho a5450dd205 Restructured project abstracting modules, using Caddy as a guide. 2017-02-11 22:13:29 -06:00