Commit Graph

18 Commits

Author SHA1 Message Date
Roman Shtylman
af2c727b41 fix upstream client disconnect handling
When upstream client disconnects, kill any waiting connections. This is
needed to inform the browser that the upstream connection is no longer
available and to close the socket so a new one will be created for new
requests.
2013-11-06 23:06:59 -05:00
Roman Shtylman
0bba03ccd2 fix processing queued requests 2013-11-04 10:30:54 -05:00
Roman Shtylman
6afb75704a use bouncy to proxy requests
- simplifies our codebase a lot!
- queued requests are currently broken
2013-11-03 16:56:41 -05:00
Roman Shtylman
b0e94c9784 explicitly set view dir 2013-06-18 23:15:48 -04:00
Roman Shtylman
d15e568cea refactor server
* shows some basic statistics on main page
* move tcp proxy setup into separate file
* migrate github page theme to be hosted locally
2013-06-18 23:00:45 -04:00
Roman Shtylman
e6971e9afe use bookrc for logging 2013-06-16 18:50:04 -04:00
Roman Shtylman
0568ae0bef close client tcp sockets after each http response
While a little less efficient than keeping tcp connections open, this
helps ensure that bad things don't happen on the socket connections when
http protocol issues happen.
2013-06-16 18:24:27 -04:00
Roman Shtylman
5c6558ed91 fix missing query parsing in server 2012-12-17 14:31:05 -05:00
Roman Shtylman
79ca069c38 refactor to use http-raw for lt server incoming
- http raw exposes a socket to the req/res pair
- cleanup client to be more resilient
- add test for queued requests
2012-12-17 14:23:12 -05:00
Roman Shtylman
b605e9b823 server: make sure client id are released when unused
When clients disconnect, their tcp server should be shutdown and the id
released after a grace period.
2012-11-14 13:53:33 -05:00
Roman Shtylman
51d91ce0e8 refactor server tcp handling
- limit on number of tcp connections
- preliminary support for websockets
2012-10-17 22:50:59 -04:00
Roman Shtylman
72a3740dbd parse query from url 2012-10-16 23:22:46 -04:00
Roman Shtylman
70a1bf9f96 redirect / to github page 2012-10-16 23:10:21 -04:00
Roman Shtylman
9964d73644 hack to handle no hostname for now
If the hostname is not specified then wtf?
2012-06-24 23:05:56 -04:00
Roman Shtylman
e6c53ad590 allow client to request previous id for reuse 2012-06-18 15:40:23 -04:00
Roman Shtylman
90cd0ed18c skip favicon for non proxy routes 2012-06-18 13:52:00 -04:00
Roman Shtylman
682e58c68e use random id for new clients
remove 'asdf' id used during testing
2012-06-18 13:40:33 -04:00
Roman Shtylman
93d62b9dbb init 2012-06-17 22:46:05 -04:00