[plt-scheme] Web server + serialze problem

From: Alexander Friedman (alex at inga.mit.edu)
Date: Tue May 3 01:14:50 EDT 2005

(module bad-servlet mzscheme
   (lib "serialize.ss")
   (lib "servlet.ss" "web-server"))

  (provide interface-version timeout start)

  (define interface-version 'v1)
  (define timeout +inf.0)

  (define-serializable-struct foo ())
  (define (start req)
    (deserialize (serialize (make-foo)))))

(require bad-servlet)

(start '()) -> #<struct:foo>

BUT, if this servlet is run from the web server:

deserialize-info-maker: expects args of type
<struct:deserialize-info>; given instance of a different

What gives?



Posted on the users mailing list.