Commit Graph

371 Commits

Author SHA1 Message Date
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
Jay McCarthy
7d47105aac Test localhost tcp before running echo server test
original commit: 552fe0f755
2012-10-23 11:28:27 -06:00
Jay McCarthy
eeace01d3b changing tests for environments where listen fails
original commit: 09dd60789a
2012-10-19 15:24:20 -06:00
Jay McCarthy
d9f2ed0abc adding an optional argument to get-pure-port/headers
original commit: a1e855a035
2012-08-16 14:47:09 -06:00
Matthew Flatt
bf4ad3fdb6 move commented-out tests to `test' submodule
original commit: c747af21e3
2012-07-15 10:32:33 -06:00
Eli Barzilay
45ee870f98 Streamline more test suits.
original commit: 6260b4c239
2012-05-24 11:27:13 -04:00
Eli Barzilay
c33561e005 A bunch of fprintf' -> eprintf' conversions (and a few related things).
original commit: 17090fca4f
2012-05-06 12:06:00 -04:00
Robby Findler
51cf8696b3 adjust the contract on string->url so that it actually catches all of
the errors that would be signalled by the body. also, remove
url-regexp from the exports (it was only recently added)

I believe this eliminates two of Eli's concerns:

  - the contract is no longer so painful to read

  - the performance is more reasonable.

Specifically, for the performance, here are the times I see to call
string->url on "http://www.racket-lang.org":

no contract: any/c
cpu time: 564 real time: 566 gc time: 3

weak contract: (-> (or/c string? bytes?) url?)
cpu time: 590 real time: 590 gc time: 3

strong, regexp-based contract:
(-> (or/c (not/c #rx"^([^:/?#]*):") #rx"^[a-zA-Z][a-zA-Z0-9+.-]*:") url?)
cpu time: 632 real time: 633 gc time: 5

This appears to be about a 10% slowdown for the regexp-based contract
over the weaker contract.

related to PR 12652

original commit: 86572cc8c3
2012-03-29 19:31:32 -05:00
Robby Findler
1b243ce46b apply Andy's diff (and adjust the documentation correspondingly)
closes PR 12652

original commit: fdf3fa6492
2012-03-27 12:21:17 -05:00
Eli Barzilay
db82f0dd43 Remove no-longer used net/cgi exceptions.
original commit: 818e434c60
2012-03-16 02:55:35 -04:00
Matthew Flatt
51972b8036 net/imap: add TLS support
Based on a patch from Thomas Spurden

original commit: 537f194c4e
2012-03-10 10:47:22 -07:00
Matthew Flatt
43ad58579f net/smtp: fix auth encoding to not add extra CRLFs
Closes PR 12501

original commit: b656219f8a
2012-02-21 06:14:44 -07:00
Matthew Flatt
dbe90fa15e add optional newline argument to `base64-encode'
original commit: a12f9831a3
2012-02-21 06:14:44 -07:00
Matthew Flatt
e6d06d9bd5 net/mime: allow any subtype, exns as exn:fail subtypes; doc fixes
original commit: 7153fbd4d5
2012-01-08 12:14:51 -07:00
Eli Barzilay
6feb946842 Minor typo in recent new regexp.
original commit: 3fcd3c04d5
2011-12-28 21:07:25 -05:00
Jay McCarthy
83d3a6d984 Synchronizable events from Tom McNulty
original commit: ae31b19168
2011-12-26 14:33:07 -07:00
Eli Barzilay
97f880fb94 More fixes and improvements to `net/unihead'.
* In base64 encoding remove all newlines from the encoded result, avoids
  getting an invalid result.

* In qp encoding:
  - replace all spaces by underlines, not just the first (looks like a
    typo in the previous code)
  - encode "?"s and "_"s too, as required for this encoding
  - remove soft newlines (again, avoid an invalid result)

* Use `regexp-replace*' to encode the parts between the lines.  Besides
  making the code simpler, it fixes a bug in the previous code where
  multiple lines would each get encoded and the results concatenated
  without the newlines or any other whitespace.

* When the string to be encoded is longer than 70 characters, split and
  encode the sub-parts, then concatenate the encodings with a "\n "
  separator.  This is done as a poor attempt to follow the line length
  limits specified in rfc2047, or more concretely, to avoid sendmail's
  "!\n " splitting.

original commit: ed8e3367d4
2011-12-21 14:46:13 -05:00