Commit Graph

25756 Commits (e50d1375a19fb5f10cf0e23dd0bfc2691c68757e)

Author SHA1 Message Date
John Benediktsson e50d1375a1 io: need to use libc for OS X? 2014-04-03 21:43:37 -07:00
Doug Coleman a02e8e3cda io.sockets.secure.openssl: Fix using list. 2014-04-02 23:11:52 -05:00
Björn Lindqvist ee19a97869 io.sockets.windows: wrap ioctlsocket and related constants to enable
setting sockets in non-blocking mode
2014-04-02 16:50:20 -05:00
Björn Lindqvist 4676ff921a windows.winsock: fix the definition of SOCKET_ERROR and unit tests that
verifies its correctness
2014-04-02 16:50:13 -05:00
Björn Lindqvist a5397756fe windows.winsock: use the windows api types instead of int and void*
where applicable
2014-04-02 16:50:06 -05:00
Björn Lindqvist f8387a08ae Merge:
io.sockets.secure.windows: use non-blocking sockets to prevent
SSL_connect from blocking

On Windows, SSL_connect may hang forever if the server doesn't send any
data. To counteract that we temporarily set the socket non-blocking and
then call select in the wait-for-fd method.

Conflicts:
	basis/io/sockets/secure/openssl/openssl-tests.factor
2014-04-02 12:16:51 -05:00
Björn Lindqvist 4d8f3e8a78 io.sockets.secure.openssl: do-ssl-connect needs to call wait-for-fd 2014-04-02 12:13:21 -05:00
Björn Lindqvist 58388f7c26 libc: fix vocab definition of platform dependent parts of libc 2014-04-02 12:13:14 -05:00
Björn Lindqvist a222ac173b libc.*: add platform files 2014-04-02 12:13:07 -05:00
Björn Lindqvist eaca04de3b libc: several vocabs now need to depend on libc 2014-04-02 12:13:00 -05:00
Björn Lindqvist 753b2f0177 io.files: make wait-for-fd generic and dispatch depending on backend
do-ssl-accept need to call wait-for-fd so it needs to be generic. On
windows it's a noop but on unix it will wait for the fd.
2014-04-02 12:12:49 -05:00
Björn Lindqvist 6421af3401 io.sockets.secure.*: unification of lots of platform-independent code
Code that is duplicated in the backends moved to
io.sockets.secure.openssl. The wait-for-fd verb used by do-ssl-accept
doesn't have any equivalent on Windows so that needs to be
implemented.
2014-04-02 12:12:37 -05:00
Björn Lindqvist 57a933e330 libc.*, unix.*: move constants and functions from the unix namespace to libc
The E* errno and SIG* constants are defined on Windows too, so they
should be in the libc vocab which is available there. They will be
used for SSL error handling.
2014-04-02 12:12:25 -05:00
Björn Lindqvist 5f38df7741 io.sockets.secure.windows: reading and writing from ssl sockets
Unified the drain and refill generics and put their definition in
io.files. They are now used by both the windows and unix ssl backend
for io. Windows ssl kind of works now, but the error cases are not
implemented correctly.
2014-04-02 12:12:14 -05:00
Björn Lindqvist 8c5ceb8b0c io.files.windows: new generic words drain and refill, like in io.backend.unix
The purpose of these words is to abstract out the pushing of the bytes
to the ports so that you can insert the ssl layer in between. Exactly
like how drain and refill are specialized on ssl-handle in
io.sockets.secure.unix.
2014-04-02 12:12:04 -05:00
Björn Lindqvist 6ed3a09b5d io.sockets.secure: new hook variable ssl-certificate-verification-supported?
t if the backend is able to verify certificates, f
otherwise. Currently certificate validation isn't implemented on Windows
2014-04-02 12:11:53 -05:00
John Benediktsson b02710e88c images.testing: fix help-lint warnings. 2014-03-14 15:10:19 -07:00
John Benediktsson dcd3938d0d images.loader: simplify registrations. 2014-03-14 09:17:13 -07:00
John Benediktsson ab76deaf25 images: minor cleanup. 2014-03-14 08:26:05 -07:00
John Benediktsson aa2f21507d images.testing: change tests to require and use image-class.
This handles the case where you are testing image-classes that are not
registered with the images.loader.
2014-03-14 08:00:42 -07:00
John Benediktsson 4e206f4181 images.loader: optionally register "non-system" image classes. 2014-03-14 07:32:27 -07:00
John Benediktsson c24e15c0d0 Revert "extra.images: call register-image-class before testing, otherwise the wrong backend might be ran"
This reverts commit 775ca10e1e7330a2a56a10b972a2605a39d1f6e1.
2014-03-14 07:32:27 -07:00
Björn Lindqvist cf40218d13 extra.images: call register-image-class before testing, otherwise the wrong backend might be ran 2014-03-14 07:32:27 -07:00
Björn Lindqvist 13dc01dbc4 images.*: fix all image>stream words in extra so that they work with the added parameter 2014-03-14 07:32:26 -07:00
Björn Lindqvist 944718c817 images.loader: docs for save-graphic-image 2014-03-14 07:32:26 -07:00
Björn Lindqvist 3a8164cd8a images.loader: support for saving images on the gtk-image backend 2014-03-14 07:32:26 -07:00
John Benediktsson d4a56057f0 http.client: add starred versions that do not check response code for success. 2014-03-13 12:26:35 -07:00
Doug Coleman 02976b249d imap: Better errors when not configured. 2014-03-13 03:24:28 -05:00
Doug Coleman 9710013460 oauth: Fix tests. Twitter API tolerates the extra ``/`` at the end of ``twitter.com``, so leave it in. 2014-03-13 03:23:27 -05:00
John Benediktsson 03b7e67547 fix some help-lint errors. 2014-03-12 20:08:15 -07:00
John Benediktsson daec237fea python.syntax: fix tests when run first. 2014-03-12 20:01:11 -07:00
John Benediktsson 272102e647 http.client: fix duplicate using. 2014-03-12 19:51:50 -07:00
John Benediktsson ed5bc3b8fa http.client: few more fixes. 2014-03-12 19:49:58 -07:00
John Benediktsson cb9c171383 http.client: remove unused word. 2014-03-12 19:39:15 -07:00
John Benediktsson 712be93989 http.client: remove http-get* and its friends, change http-request* and with-http-request* to not check response codes. 2014-03-12 19:39:15 -07:00
Doug Coleman 7c06afa219 gdbm.ffi: Use alien library finder except on Windows until we can test if it works there. 2014-03-12 20:29:08 +00:00
John Benediktsson 9c1dd0ad58 sequences: faster interleave. 2014-03-12 12:51:32 -07:00
John Benediktsson a6989e2cc2 logging.server: add support for changing the logging root temporarily. 2014-03-12 12:41:57 -07:00
John Benediktsson 317b0c8d20 oauth needs this, and this needed protocol-port fixes.
Revert "Revert "urls: Allow URLs of the form //foo.com, which take on the protocol of the URL they derive from.""

This reverts commit 76fa8b7a29f3738f44230c473b7edf841f1de7c3.
2014-03-12 07:43:40 -07:00
John Benediktsson 0a2fef0775 io.sockets: change protocol-port to handle ``f`` on all platforms. 2014-03-12 07:27:39 -07:00
John Benediktsson 47b96f6891 Revert "sequences: require integers for slice and repetition."
This reverts commit 5e87cdb3a9b5885c6648ffaf6e5e9a2edc5fd200.
2014-03-12 07:27:39 -07:00
John Benediktsson 6ed0db20fd python.syntax: fix py-import. 2014-03-12 07:27:39 -07:00
Doug Coleman 80d574af8c Leave oauth alone. Leave her alone!!!
Revert "Revert "oauth: Generate the oauth signature base string the way twitter does it.""

This reverts commit 288156beb6bd09e4d00de03d0be6d41acbd30419.
2014-03-12 00:58:04 -05:00
John Benediktsson 16d66b8c77 Revert "oauth: Generate the oauth signature base string the way twitter does it."
This reverts commit e633caac716d58e7f94bf29b171e096df1c7b395.
2014-03-11 20:47:08 -07:00
John Benediktsson 65846fb5ba Revert "urls: Allow URLs of the form //foo.com, which take on the protocol of the URL they derive from."
This reverts commit e6598fc22fd91309288fbe9840f7872d8fd84438.
2014-03-11 20:20:23 -07:00
Doug Coleman c6fd2da67f tools.coverage: Add a ``test-coverage-recursively`` word. Not all vocabs can be tested for unit test coverage, so don't make this the default. Fixes #1013. 2014-03-11 21:20:34 -05:00
John Benediktsson 0a2e632d4c io.standard-paths.unix: fix tests on arch linux. 2014-03-11 11:37:00 -07:00
John Benediktsson 0fd53ac54c io.streams.byte-array: some cleanup. 2014-03-11 11:27:50 -07:00
John Benediktsson 9090aa2bd1 io.streams.byte-array: add test of empty byte array. 2014-03-11 11:26:05 -07:00
John Benediktsson b039b6a542 io.streams.string: cleanup tests. 2014-03-11 11:25:53 -07:00