1. 03 Jan, 2011 1 commit
  2. 28 Dec, 2010 1 commit
  3. 27 Dec, 2010 2 commits
    • Joel Martin's avatar
      wswrapper: timeout select. · 64dbc6bb
      Joel Martin authored
      The select call needs to timeout if a WebSocket socket keeps reporting
      ready but actually isn't ready. To prevent it hanging forever in that
      condition, the timeout value is now adjusted now for each call.
      
      Move the DO_DEBUG and DO_TRACE settings to wswrapper.c.
      64dbc6bb
    • Joel Martin's avatar
      wswrapper: interpose select/pselect. Cleaup. · 6b900d25
      Joel Martin authored
      Interpose on select/pselect so that WebSockets sockets are only
      reported as ready if they have enough to actually decode at least
      1 byte of real data. This prevents hanging in read/recv after
      WebSocket is reported as ready but is not actually ready because empty
      frames or less than four base64 bytes have been received.
      
      Split defines and constant defintions into wswrapper.h.
      
      Cleanup debug output and add TRACE for more detailed tracing debug
      output.
      
      Major TODO is that select needs to timeout if WebSocket socket keeps
      reporting ready but actually isn't ready. That condition will
      currently hang forever because the select timeout value is not
      adjusted when looping.
      6b900d25
  4. 25 Dec, 2010 1 commit
  5. 24 Dec, 2010 1 commit
  6. 21 Dec, 2010 3 commits
  7. 16 Dec, 2010 1 commit
    • Joel Martin's avatar
      wswrapper: fix preload path and interpose port. · 40a653f5
      Joel Martin authored
      Make path to ld preload library absolute so wswrapper works even if
      path is changed before main program is executed (i.e. by the vncserver
      wrapper script).
      
      bind() was using the return value for the port number, but it's
      actually the original port number that we should interpose on in the
      bind() routine.
      40a653f5
  8. 14 Dec, 2010 2 commits
  9. 13 Dec, 2010 1 commit
    • Joel Martin's avatar
      wswrap: WSWRAP_PORT envvar and wswrap script. · 70c58596
      Joel Martin authored
      wswrapper.so will only interpose on the listen port specified in
      WSWRAP_PORT.
      
      Add simple wswrap script that sets the WSWRAP_PORT, LD_PRELOAD and
      invokes the command line to wrap.
      70c58596
  10. 10 Dec, 2010 1 commit
    • Joel Martin's avatar
      Make compatible with jQuery. Slight API change. · e4671910
      Joel Martin authored
      Rename the $() selector to $D() so that it doesn't collide with
      the jQuery name.
      
      The API change is that the 'target' option for Canvas and RFB objects
      must now be a DOM Canvas element. A string is no longer accepted
      because this requires that a DOM lookup is done and the Canvas and RFB
      should have no UI code in them. Modularity.
      e4671910
  11. 03 Dec, 2010 1 commit
    • Joel Martin's avatar
      wswrapper: wrap existing server using LD_PRELOAD. · 5b0bbd5c
      Joel Martin authored
      wswrapper.so is LD_PRELOAD shared library that interposes and turns
      a generic TCP socket into a WebSockets service.
      
      This current version works but will only allow work for a single
      connection, subsequent connections will not be wrapped. In addition
      the wrapper interposes on the first incoming network connection. It
      should read an environment variable to determine the port to interpose
      on. Also, should limit origin based on another environment variable.
      Then there should be a wswrap setup script that allows easier
      invocation.
      5b0bbd5c
  12. 15 Nov, 2010 1 commit
    • Joel Martin's avatar
      rfb.js: avoid multiple b64 sequences per frame. · 79f0a095
      Joel Martin authored
      Only call encode_message when the WebSockets object is actually
      ready to send. Otherwise multiple base64 encode sequences can be
      encoded into the same WebSockets frame. This causes the C version of
      wsproxy to crash and the python version to ignore the subsequent
      base64 sequence(s).
      
      Thanks to Colin Dean (xvpsource.org) for finding this and helping
      track it down.
      79f0a095
  13. 10 Nov, 2010 1 commit
  14. 09 Nov, 2010 1 commit
    • Joel Martin's avatar
      Add Chrome Frame support. Close requests in web.py. · e66f3f89
      Joel Martin authored
      - Add meta tag to vnc.html and vnc_auto.html so that if Chrome Frame
        is installed, it is used.
      
      - Add detection to default_controls.js that shows a message with
        a Chrome Frame install link if the user is using a version of IE
        without Canvas support.
      
      - Fix web.py so that requests have their connection closed after they
        are completed.  This has been a bug for a while but it prevents
        Chrome Frame from working because Chrome Frame doesn't activate
        until the initial request connection closes.
      e66f3f89
  15. 08 Nov, 2010 2 commits
  16. 06 Nov, 2010 7 commits
  17. 28 Oct, 2010 4 commits
  18. 24 Oct, 2010 1 commit
  19. 18 Oct, 2010 1 commit
  20. 14 Oct, 2010 2 commits
  21. 10 Oct, 2010 1 commit
  22. 04 Oct, 2010 1 commit
  23. 01 Oct, 2010 1 commit
    • Joel Martin's avatar
      rfb.js: rQwait, cuttext simplification. · 60440cee
      Joel Martin authored
      - rQwait checks the receive queue to see if there is enough data to
        satisfy the following request. If not it returns true (which is
        almost always translated into an immediate return false by the
        caller).
      
      - rQwait is called quite a bit and this generally allows 4 lines to
        become 1 line where it is called.
      
      - rQwait allows simplification of cuttext processing. No global
        tracking needed anymore.
      
      Overall, about 60 lines less code.
      60440cee
  24. 30 Sep, 2010 1 commit
    • Joel Martin's avatar
      include/des.js: trim some fat. · a9995971
      Joel Martin authored
      DES is just used once during authentication and is not performance
      sensitive so we save some space by generating and/or removing some
      lookup tables. Also, shorten some very frequently used variables.
      
      Shaves off about 100 lines.
      a9995971
  25. 29 Sep, 2010 1 commit