| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
| |
* web/socket/frame.scm (frame-reader): Removed.
(make-deadline, deadline-seconds-remaining, read-frame/deadline): New
procedures.
(read-data-frame, read-close-frame): Call deadline procedures instead of
frame-reader.
|
|
|
|
|
|
|
|
|
|
|
|
| |
* web/socket/client.scm (close-websocket): Add timeout parameter. Call
read-close-frame with timeout.
(websocket-receive): Add timeout parameter. Call read-data-frame with
timeout. Don't close the websocket on timeout.
* web/socket/frame.scm (port-readable?, port-writable?, frame-reader):
New helper procedures.
(read-close-frame): New procedure.
(read-data-frame): Add timeout parameter. Use frame-reader to support a
composed read timeout.
|
|
|
|
|
|
|
|
|
| |
* web/socket/frame.scm (read-data-frame): New procedure, extracted from
serve-client.
* web/socket/client.scm (websocket-receive): Call read-data-frame.
Clean up the websocket if the connection was closed.
* web/socket/server.scm (serve-client): Call read-data-frame. Flush the
port after writing the handshake response.
|
|
|
|
|
|
|
|
|
| |
* web/socket/client.scm (make-client-socket): Add verify-certificate?
parameter. Call open-socket-for-uri to create the socket.
(handshake): Flush the port after writing the request.
(make-websocket): Add #:verify-certificate? parameter.
* web/socket/frame.scm (write-frame): Flush the port after writing the
frame.
|
|
|
|
| |
* web/socket/frame.scm (read-frame): s/to/too/
|
| |
|
|
|
|
|
| |
* web/socket/frame.scm (write-frame)[masked-data]: Correctly copy the
source bytevector.
|
|
|
|
| |
* web/socket/frame.scm (make-ping-frame): New procedure.
|
| |
|
| |
|
| |
|
| |
|
|
|