Commit Graph

25799 Commits (6f87c2afc7ebb103cd5dea6e0a6e26ed9e68dd91)

Author SHA1 Message Date
John Benediktsson 6f87c2afc7 io.sockets: use must-fail-with for resolve-host errors. 2014-04-20 10:02:04 -07:00
John Benediktsson 24cb41aa13 io.sockets: don't need "0 or" for addrinfo. 2014-04-20 09:30:03 -07:00
Björn Lindqvist e1206d5ef1 io.sockets: add word addrinfo-error to signal host lookup failures
If the getaddrinfo call fails, and you want to handle that failure in
a structured way, then you need a designated error type to know what
went wrong.
2014-04-20 09:29:31 -07:00
Björn Lindqvist 516ffcc311 io.sockets.secure.openssl.tests: more and better SSL_connect tests
Better error handling so it should be easier to see why the tests fail
on the build server (#1036).
2014-04-18 10:06:46 -07:00
Björn Lindqvist df3417c5b7 io.sockets.secure.openssl: more docs 2014-04-18 10:06:46 -07:00
Björn Lindqvist e473ef628d io.sockets.secure.openssl: big refactoring, all error handling merged into one check-ssl-error word 2014-04-18 10:06:46 -07:00
Björn Lindqvist d62c2ae351 FUEL: some more chars that often are used in word names 2014-04-18 08:43:12 -07:00
Björn Lindqvist c21a562529 fuel.pprint: . needs to be escpaed to load prettyprint's help page 2014-04-18 08:43:12 -07:00
Björn Lindqvist 693ca82648 FUEL: factor-find-in returns correct vocab when point is on the IN:-line 2014-04-18 08:43:11 -07:00
Björn Lindqvist bf060849c9 FUEL: improve highlighting of LIBRARY:, HELP: and deprecated 2014-04-18 08:43:11 -07:00
Björn Lindqvist b9082ca7b1 FUEL: fallback to the all-words algorithm when search doesnt work
It's to hard to figure out the correct "in" and "usings" values for
fuel-eval-in-context when *fuel help* is looking at articles. Instead
of trying, fallback on the less precise word lookup algorith and
accept that it sometimes will lead you wrong.
2014-04-18 08:43:11 -07:00
Björn Lindqvist 368abbe777 FUEL: Improved handling of documentation markup errors
The fuel-eval--retort-result-safe function can be used to get the
retort result and throw an error if the retort error is
set. E.g. (fuel-help "prettyprint") will now throw an error because
the markup is invalid instead of showing "No help available.."
2014-04-18 08:43:11 -07:00
Björn Lindqvist a80dc21337 FUEL: Use font-locks data to figure out if the token point is on is a vocab
If point is on "myvocab" in IN: myvocab fuel-help will now understand
that it is on a vocabulary token.
2014-04-18 08:43:11 -07:00
Björn Lindqvist 385a8a0798 FUEL: remove fuel-help-short and supporting code
The feature is not used anywhere (not bound to any key) and the normal
fuel-help display works better than fuel-help-short anyway
2014-04-18 08:43:11 -07:00
John Benediktsson d3935d2ef3 add some libc usings for macosx. 2014-04-16 07:55:37 -07:00
Doug Coleman 3fa95d3370 smtp: Use a config object. Fix docs. Fix unit tests. 2014-04-15 21:59:14 -07:00
Doug Coleman 721fd36d0f mason.test: Allow for a .factor-mason-rc which is loaded by maason.test. 2014-04-15 19:05:06 -07:00
Doug Coleman c0fbf0455d tools.scaffold: Add word to scaffold a mason rc file. 2014-04-15 19:05:00 -07:00
Doug Coleman f6bfd23d84 imap: Fix docs referring to wrong boot rc file. 2014-04-15 19:04:53 -07:00
John Benediktsson ebc8b769c6 vocabs.files: change vocab-tests example to sort output. 2014-04-15 13:35:59 -07:00
John Benediktsson bc655bc061 io: change with-output-stream* example to unchecked. 2014-04-15 13:35:35 -07:00
John Benediktsson 8fc9b823e3 help.lint.checks: remove leaks check for now due to bootstrap issues. 2014-04-15 10:48:49 -07:00
Björn Lindqvist b72fa3ba0a Docs: fixed doc example errors triggered by help-lint and added with-disposal where applicable 2014-04-14 08:42:10 -07:00
Björn Lindqvist a48567b8af Docs: more matrix-related documentation 2014-04-14 08:42:09 -07:00
Björn Lindqvist 7c9f106018 Docs: source-files.errors 2014-04-14 08:42:09 -07:00
Björn Lindqvist 8b4af6bc86 Docs: doc and examples for math.matrices 2014-04-14 08:42:09 -07:00
Björn Lindqvist 9b28623b4f Docs: examples for io.launcher words 2014-04-14 08:42:09 -07:00
Björn Lindqvist 1b620dee5b Docs: examples for vocab-files and vocab-tests 2014-04-14 08:42:09 -07:00
Björn Lindqvist 6b061ffabf Docs: example for head? and subwords 2014-04-14 08:42:09 -07:00
Björn Lindqvist 2cbea3cb31 Docs: a few more examples for words that were missing them 2014-04-14 08:42:09 -07:00
Björn Lindqvist a3eba146fd io.sockets: example for the with-socket function 2014-04-14 08:42:09 -07:00
Björn Lindqvist b79bd45908 io.sockets: example for resolve-host 2014-04-14 08:42:08 -07:00
Björn Lindqvist e151972d47 urls.tests: unit tests for url-addr 2014-04-14 08:42:08 -07:00
Björn Lindqvist d3e5312b44 urls: example for secure url-addr 2014-04-14 08:42:08 -07:00
Björn Lindqvist 1c74268af7 io: with-output-stream* example 2014-04-14 08:42:08 -07:00
Björn Lindqvist c0ff39d129 FUEL: fix factor-find-usings and use it in fuel-help--word-help so that fuel can eval code with the right vocabs imported 2014-04-14 08:38:33 -07:00
Björn Lindqvist 35fd1ad8cb FUEL: correct fuel-helps word lookup algorithm
e.g if you lookup help for pop you should see the help page for
sequences:pop not persistent.deques.private:pop
2014-04-14 08:38:33 -07:00
Björn Lindqvist 792ed03b4d help.lint.checks: check for disposable leaks and print more details when $values are wrong 2014-04-14 08:37:52 -07:00
Doug Coleman d123f589f7 io.sockets.secure.openssl: Check error code in unit test. 2014-04-08 12:08:58 -07:00
Doug Coleman bc89b6c7d5 imap: Add some combinators, fix up some docs, add docs, fix up unit tests. 2014-04-05 15:51:41 -07:00
John Benediktsson 29006e4a86 libc: fix tests using. 2014-04-04 09:29:42 -07:00
John Benediktsson d031109cc4 libc: test "1 strerror" since zero gives different output on different platforms. 2014-04-04 09:28:39 -07:00
John Benediktsson 5e129a8964 more libc fixes. 2014-04-04 08:03:46 -07:00
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