Thanks Tony,
I can confirm that eof-evt promptly delivers the expected information
about the dropped TCP connection.
Can an application promptly find out about dropped connections from any
available HTTP library for racket?
Jeff
Tony Garnock-Jones
unread,
Jul 2, 2022, 9:23:51 AM (2
try testing the input port for closedness two different ways. The
default code tests with port-closed-evt. The commented out code tests by
calling port-closed? in a loop. Neither method succeeds in detecting
the broken TCP connection.
Thanks for any help.
Regards,
Jeff Henrikson
#lang
Racket users,
How do I accept an inbound TCP connection so that once I am processing
it, if the connection is broken by the client or network, my program
promptly finds out?
Regards,
Jeff Henrikson
--
You received this message because you are subscribed to the Google Groups "Racket
places.
Regards,
Jeff Henrikson
On 8/26/21 8:14 AM, Matthew Flatt wrote:
The analog to the first argument to main in C is
(find-system-path 'run-file)
I think that's probably what you want.
Something closer to `get-current-source` but adapting to a run-time
file is
(variable
ing the
original source location if the program is compiled with raco exe (and
then moved).
Is there a way in racket to obtain the path of the application program?
Jeff Henrikson
--
You received this message because you are subscribed to the Google Groups "Racket
Users" group.
To uns
h of stuff to decorate.
If I try to do the more convenient outside position for quasisyntax/loc,
my EOL data seems to get overwritten:
;; ex4
(let* ((xs '("collected" "from" "separate" "lines"))
(ys (syntax-on-lines xs)))
(syntax->string (
)
(define in (open-input-string "(comment\n \"hello world\"\n line)"))
(port-count-lines! in)
(syntax->string (read-syntax "mystring" in))
; -> "comment\n \"hello world\"\n line"
On Fri, Apr 9, 2021 at 2:10 AM Jeff Henrikson <mailto
behavior if I read-syntax from a file and apply
syntax->string to those values.
Does anyone know how to get syntax->string to recover the original
whitespace?
I'm using Racket 8.0 cs on Ubuntu 20.
Thanks in advance,
Jeff Henrikson
--
You received this message because you are subscri
of old
packages) then I recommend Bogdan Popa's racksnaps.
Sam
On Thu, Apr 8, 2021, 8:57 PM Jeff Henrikson <mailto:jehenri...@gmail.com>> wrote:
Sam,
Thanks for the help.
>> Could it be that the package service is actually deleting old
versions of packages when
-Hochstadt wrote:
On Wed, Mar 17, 2021 at 1:58 PM Jeff Henrikson wrote:
Thanks for the help.
In fact there are two concepts here, and part of what I think confused you is
something I just discovered this week and plan to report as a bug:
https://pkgs.racket-lang.org/pkgs-all does not include
ot;unstable" or "experimental", like unstable/gui/redex
<https://docs.racket-lang.org/unstable-redex/index.html>or my
adjutor/unstable <https://docs.racket-lang.org/adjutor/Unstable.html>,
or you put a big scary warning in the docs like this
<https://docs.racket-lang.or
cket package manager?
Thanks in advance,
Jeff Henrikson
#lang racket
;; obtain data with:
;; curl https://pkgs.racket-lang.org/pkgs-all > contrib_pkgs-all.sexp
;; relfin is "contrib_pkgs-all.sexp" or similar.
;;
;; In practice it's one value that comes over the
12 matches
Mail list logo