Commit Graph

337 Commits

Author SHA1 Message Date
Sam Tobin-Hochstadt
fbb5723ba3 Run the net tests under raco test.
original commit: 5e8a9780e8
2013-07-06 10:26:56 -04:00
Eli Barzilay
f92a8c4e45 Further explain silent acceptance of unencoded characters.
Also highlight the two tests that use that.

original commit: 8d55b892ec
2013-07-05 20:20:49 -04:00
Sam Tobin-Hochstadt
ff56800079 Use #lang info instead of #lang setup/infotab.
original commit: 5a7ca7ebb5
2013-07-04 16:46:32 -04:00
Sam Tobin-Hochstadt
e6275c3b69 Move most of the net collection out of the core.
- Most units and signatures from the `net` collection
  are now in `compatibility-lib`.
- Most of the actual libraries are in the `net-lib`
  package.

original commit: 2b1fb036c6
2013-07-01 11:27:14 -04:00
Matthew Flatt
a8b472d4c4 auto-fix dependencies in "pkgs"
Left one dependency broken: "drracket" currently depends on "htdp" for
a test. That needs to be fixed by removing the dependency (moving the
test to "htdp?), instead of changing the declared dependencies.

original commit: 51290fd2a9
2013-06-29 06:51:19 -06:00
Matthew Flatt
a62b3559de a step toward single-collection packages as default
A package's "info.rkt" file should define `collection' as a
string to name a single-collection package's collection, or as
the symbol 'multi to declare the package as multi-collection.
If `collection' is 'same-as-pkg, then the package name is used
as the collection name.

The default for `collection' is 'multi for now, but the intent
is to change the default to 'same-as-pkg after a conversion
period. Also, support for a `single-collection' definition remains
in place, but it wil be removed.

original commit: c738a6aa3e
2013-06-25 22:46:23 +02:00
Matthew Flatt
81f9d66ca1 reorganize into core plus packages
The "racket" directory contains a pared-back version of the
repository, roughly.

The "pkgs" directory everything else in the repository, but
organized into packages.

original commit: b2ebb0a28b
2013-06-19 09:01:37 -06:00
Eli Barzilay
ea5ef3ff51 Misc improvements to `net/uri-codec'.
Fix a bug in encoding strings with characters between 128 and 256, avoid
extra bindings for conversion vectors; remove calling `noels-tests' from
`main' since it's already called from `tests', etc.

original commit: c2280ed8dc
2013-05-22 13:19:12 -04:00
Matthew Flatt
71a343ca03 raco pkg create: support "source" and "binary" bundling
Adds `--from-dir' and `--from-install' flags to select the interpretation
of the argument as a directory or as the name of an installed package.
Relevant to PR 13669

Adds `--as-is' (the default), `--source', and `--binary' flags to
select a pruning mode.

The `raco setup' tool recognizes a `rendered-scribblings' specification
in "info.rkt" to trigger moving rendered documentation into place,
registering its tags in the cross-reference database, and fixing up
references to "local-redirect.js"; the presence of a "synced.rktd"
indicates when those fixups have been performed (since, if the package
is installed in a user-specific scope, the documentation doesn't actually
move anywhere). Finally, "out<n>.sxref" needs to report paths relative to
the documentation's directory, and then the relative-directory references
need to be suitably resolved at derserialization; some support for such
relative paths was in place, but it wasn't quite general enough before.

original commit: 198a65a5fc
2013-05-16 11:50:04 -06:00
Jay McCarthy
04d012960f Fixing PR13729
original commit: 7afde31fa6
2013-05-06 07:23:08 -06:00
Greg Hendershott
7b40eb66b7 Add optional message flags argument to imap-append.
Previously this was hard-coded to use the \Seen flag. Now that's the
default value when the argument is not supplied.

original commit: c6e2843557
2013-04-23 15:49:22 -06:00
Asumu Takikawa
d9ee32c7f3 Fix old style contracts
original commit: d4927e917b
2013-04-16 10:52:55 -04:00
Asumu Takikawa
0e41a56b70 Fix imap-list-child-mailboxes to match contract
Closes PR 13658

original commit: 7d4b162181
2013-04-16 10:52:55 -04:00
Asumu Takikawa
0d0c10d9c4 Fix parsing when CNAME is provided for MX query
The code was assuming that the record type was
MX even though this could be false. Also adjusted
some code to also make it easier to test.

Note: the behavior when MX records are missing
is probably still not right.

Closes PR 13654

original commit: c7d878c009
2013-04-16 10:52:55 -04:00
Matthew Flatt
e37893aa04 net/url: support HTTP/1.1 connections
original commit: 50ade25b28
2013-04-15 06:21:49 -06:00
Asumu Takikawa
213f2024a0 Use any/c for the ip-address-string? domain
Previously, it was `string?` which is needlessly
restrictive and caused premature contract failures.

Please merge into 5.3.4

original commit: 5735d37794
2013-04-08 11:18:57 -04:00
Eli Barzilay
0a2edd7045 Avoid output in ftp tests.
Also add a note explaining why the output is not tested.

original commit: 26273db266
2013-04-05 02:23:43 -04:00
Eli Barzilay
92358cb553 Misc improvements to net/dns' and net/private/ip'.
* Some racketisms.

* Use explicit `in-list' etc in for loops.

* Remove some redundant requires from `net/dns'.

* Move all tests to `tests/net', including a new `tests/net/ip'.  In the
  future there's a plan to have things like stripped zos etc for
  distribution, but we're not there yet, and the net collection is
  already organized nicely so this also makes it more uniform.

* Include the dns tests in the main test file.

original commit: 6149134011
2013-04-05 02:23:43 -04:00
Asumu Takikawa
518051a4b3 Fix the returned type of dns-get-mail-exchanger.
original commit: 8483a1493f
2013-04-04 16:11:28 -04:00
Asumu Takikawa
e3c806296d Fix ipv4 check on addresses with a leading 0
original commit: 02989b23a1
2013-04-04 14:03:23 -04:00
Asumu Takikawa
58ad235030 Refine contract check
original commit: 0b55cf3df2
2013-04-04 14:03:23 -04:00
Asumu Takikawa
ab5c430480 Fix equality check
original commit: e62bb05f05
2013-04-04 14:03:23 -04:00
Asumu Takikawa
7d931543f6 Make IP addresses immutable
original commit: f904bd8ba5
2013-04-04 14:03:23 -04:00
Asumu Takikawa
3822cad523 Use net/private/ip in net/dns
This simplifies the code by outsourcing IP
address functionality to net/private/ip.

original commit: 92102a2f07
2013-04-04 13:05:56 -04:00
Asumu Takikawa
a1d0fe9fe1 Add an IP address library
The library currently lives in a private subfolder so
that the interface can still be changed. The idea is to
eventually make it a top-level `net` library once it is
more mature.

original commit: 4e76ae8c11
2013-04-04 13:05:56 -04:00
Asumu Takikawa
a66f244fd9 Fix identifier typo
original commit: de99fdb867
2013-03-09 17:13:59 -05:00
Jay McCarthy
3fd203d3d5 Extending cookie support with expiration
Providing access to paths on id-cookies

Change PNR to limit checksum updating unless forced

original commit: 6bf03c1244
2013-03-07 10:21:03 -07:00
Asumu Takikawa
1f8820eeaf Set the socket protocol family
Allows the use of an IPv6 nameserver

original commit: 312792ac4d
2013-03-02 13:36:34 -05:00
Asumu Takikawa
e128f02d8d Support reverse lookups with IPv6 addresses
original commit: 3ab83001b4
2013-03-02 14:26:28 -05:00
Asumu Takikawa
a49b615b9a Shorten IPv6 addresses for display
original commit: cf4c71a51f
2013-03-02 14:26:28 -05:00
Asumu Takikawa
0f309cd525 Support querying AAAA records for IPv6
original commit: c2e8ef30e4
2013-03-02 14:26:27 -05:00
Asumu Takikawa
77a70d3e52 Start to add internal documentation
original commit: 621fc2b256
2013-03-02 14:09:30 -05:00
Asumu Takikawa
e9b40d3e69 Add DNS tests
original commit: 94b2ebddfa
2013-03-01 16:22:36 -05:00
Asumu Takikawa
b0e565e19b Another small contract fix
original commit: 50cd4645c1
2013-03-01 16:22:36 -05:00
Asumu Takikawa
e8bd0b51c6 Fix net/dns contracts
original commit: 14c77c39d2
2013-03-01 00:48:11 -05:00
Asumu Takikawa
ad2b0c6587 Add contracts to net/dns functions.
original commit: 9d08d69d07
2013-03-01 00:05:40 -05:00
Eli Barzilay
ee16347918 Improve comment.
original commit: 46894e0cc6
2013-02-19 00:22:47 -05:00
Matthew Flatt
b2e68957cd net/ftp: put temp file for download in directory of destination
original commit: f1b4c86519
2013-02-14 13:03:58 -07:00
Jay McCarthy
39f5f77fd4 Fixing PR13374
original commit: 921456f3ad
2012-12-17 16:28:46 -07:00
Matthew Flatt
e8f889eb05 net/url: add `current-url-encode-mode'
Changing `current-url-encode-mode' from 'recommended to 'unreserved
causes `url->string' to encode !, *, ', (, and ) using %, which
can avoid confusing some parsers.

See also https://github.com/plt/racket/pull/198

original commit: b8b8260379
2012-12-17 06:56:38 -07:00
Matthew Flatt
8a061420d0 net/uri-codec: added `uri-path-segment-unreserved-encode'
original commit: 3d1f1289ef
2012-12-17 06:32:59 -07:00
Chen Xiao
95d818431b A tiny bug in documents of ftp
original commit: a04ae51f64
2012-12-17 05:45:40 -07:00
Matthew Flatt
a951303303 net/ftp: make progress proc keyword, change progress protocol
The revised protocol for a progress procedure doesn't create
the thread automatically, and it provides an event to indicate
when the progress count changes.

original commit: e0de33a005
2012-12-13 07:45:26 -07:00
Chenxiao
d668029836 Improve ftp client. Add upload, progress monitor and something else.
original commit: 4cc287f7e5
2012-12-13 07:09:04 -07:00
Philippe Mechai
51f0506e7e Added path->url tests for directory paths
This check that no regression was introduced with 733d95b.

original commit: 201534b7ad
2012-11-27 08:46:40 -07:00
Matthew Flatt
0731559f69 net/imap: log to an 'imap logger
original commit: e4e4d544f5
2012-11-23 18:44:51 -07:00
Eli Barzilay
91b048020e Newlines at EOFs.
original commit: 14d8c8b5a5
2012-11-06 14:07:15 -05:00
Danny Yoo
e023d133e7 adding close-eval at the end of scribble files that have a toplevel evaluator
original commit: dcf4d8b040
2012-11-01 15:32:53 -06:00
John Clements
7c864d188f exposed mapping for unreserved characters
original commit: 1f02a0a8b8
2012-11-01 12:38:09 -07:00
Jay McCarthy
191874f50f second attempt at removing reliance on tcp. available has been greatly simplified because it relied on the behavior the thread.rktl test is actually testing
original commit: f16e76ca32
2012-10-26 15:26:39 -06:00