mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-06-09 21:40:33 +02:00
web: Update comment regarding the 'tls-wrap' port wrapper.
* module/web/client.scm (tls-wrap): Update comment.
This commit is contained in:
parent
38f14ce65d
commit
c3daf58b89
1 changed files with 8 additions and 0 deletions
|
@ -264,7 +264,15 @@ host name without trailing dot."
|
|||
(close-port port))
|
||||
(unless (port-closed? record)
|
||||
(close-port record)))
|
||||
|
||||
(setvbuf record 'block)
|
||||
|
||||
;; Return a port that wraps RECORD to ensure that closing it also
|
||||
;; closes PORT, the actual socket port, and its file descriptor.
|
||||
;; XXX: This wrapper would be unnecessary if GnuTLS could
|
||||
;; automatically close SESSION's file descriptor when RECORD is
|
||||
;; closed, but that doesn't seem to be possible currently (as of
|
||||
;; 3.6.9).
|
||||
(make-custom-binary-input/output-port "gnutls wrapped port" read! write!
|
||||
get-position set-position!
|
||||
close))))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue