|
From: <cli...@li...> - 2005-06-30 03:13:25
|
Send clisp-cvs mailing list submissions to cli...@li... To subscribe or unsubscribe via the World Wide Web, visit https://lists.sourceforge.net/lists/listinfo/clisp-cvs or, via email, send a message with subject or body 'help' to cli...@li... You can reach the person managing the list at cli...@li... When replying, please edit your Subject line so it is more specific than "Re: Contents of clisp-cvs digest..." CLISP CVS commits for today Today's Topics: 1. clisp/modules/rawsock rawsock.xml,1.15,1.16 (Sam Steingold) 2. clisp/modules/fastcgi fastcgi.lisp,1.4,1.5 (John Hinsdale) --__--__-- Message: 1 From: Sam Steingold <sd...@us...> To: cli...@li... Subject: clisp/modules/rawsock rawsock.xml,1.15,1.16 Date: Wed, 29 Jun 2005 13:43:29 +0000 Reply-To: cli...@li... Update of /cvsroot/clisp/clisp/modules/rawsock In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv22354/modules/rawsock Modified Files: rawsock.xml Log Message: shutdown is still present Index: rawsock.xml =================================================================== RCS file: /cvsroot/clisp/clisp/modules/rawsock/rawsock.xml,v retrieving revision 1.15 retrieving revision 1.16 diff -u -d -r1.15 -r1.16 --- rawsock.xml 22 May 2005 01:19:34 -0000 1.15 +++ rawsock.xml 29 Jun 2005 13:43:27 -0000 1.16 @@ -11,7 +11,7 @@ <warning id="rawsock-use-sockets"><title>Use &socket-stream; instead!</title> <simpara>This interface is very low-level, and you probably do not need it - unless you are doing something <emphasis>very</emphasis> unusual. - If you are interested in TCP/IP (Internet) sockets, you should use + If you are interested in TCP/IP (Internet) stream sockets, you should use &socket-stream;s, ¬-e; this package.</simpara></warning> <warning id="rawsock-not-streams"><title>Do ¬-e; use &make-stream;!</title> @@ -21,7 +21,7 @@ <ulink url="http://sourceforge.net/mailarchive/message.php?msg_id=7203955" >mailing list archives</ulink> for more details. Note that &make-stream; will duplicate the &file-des; (using &dup;), - so you <emphasis>still</emphasis> have to &close; the raw socket. + so you <emphasis>still</emphasis> have to &close; the original raw socket. </simpara></warning> <para>We implement access to @@ -32,7 +32,7 @@ <member>&ntohl;</member><member>&ntohs;</member><member>&listen-c;</member> <member>&recv;</member><member>&recvfrom;</member><member>&recvmsg;</member> <member>&send;</member><member>&sendmsg;</member><member>&sendto;</member> - <member>&socket;</member><member>&sockatmark;</member> + <member>&shutdown;</member><member>&socket;</member><member>&sockatmark;</member> <member>&socketpair;</member></simplelist> using same-named lisp functions in package <quote role="package">RAWSOCK</quote>. @@ -55,8 +55,8 @@ <para>We do not interface to &select; or &poll;, they are available through &so-status;.</para> -<para>We do not interface to &shutdown;, - it are available through &sost-shut;.</para> +<para>Although we do interface to &shutdown; at this time, + in the future it will be available through &sost-shut;.</para> <para>We do not interface to &gethostbyname; or &gethostbyaddr;, they are available through &resolve-host;.</para> --__--__-- Message: 2 From: John Hinsdale <hi...@us...> To: cli...@li... Subject: clisp/modules/fastcgi fastcgi.lisp,1.4,1.5 Date: Thu, 30 Jun 2005 00:17:28 +0000 Reply-To: cli...@li... Update of /cvsroot/clisp/clisp/modules/fastcgi In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv7593 Modified Files: fastcgi.lisp Log Message: Write large documents to output in chunks of 64K (seems to be problems converting large buffers via the FFI) Index: fastcgi.lisp =================================================================== RCS file: /cvsroot/clisp/clisp/modules/fastcgi/fastcgi.lisp,v retrieving revision 1.4 retrieving revision 1.5 diff -u -d -r1.4 -r1.5 --- fastcgi.lisp 20 May 2005 20:03:51 -0000 1.4 +++ fastcgi.lisp 30 Jun 2005 00:17:26 -0000 1.5 @@ -64,8 +64,14 @@ ; WRITE-STDOUT (defun write-stdout (data) "(FASTCGI::WRITE-STDOUT string) - Write a string to standard output" - (let ((s (to-string data))) - (fcgi_write_stdout s (length s)))) + ;; Do it in chunks since there seems to be FFI problems with large buffers + (do* ((chunksize 65536) + (s (to-string data)) + (totlen (length s))) + ((= 0 (length s)) totlen) + (let ((to-write (min (length s) chunksize))) + (fcgi_write_stdout (subseq s 0 to-write) to-write) + (setf s (subseq s to-write))))) ; WRITE-STDERR (defun write-stderr (data) --__--__-- _______________________________________________ clisp-cvs mailing list cli...@li... https://lists.sourceforge.net/lists/listinfo/clisp-cvs End of clisp-cvs Digest |