Fix a bug in SEND-MESSAGE:
There is such a thing as an empty datagram; SEND-MESSAGE used to ignore those. Now force those to be sent as well.
This commit is contained in:
parent
ad18648afa
commit
4a1c23a9bb
|
@ -504,10 +504,12 @@
|
|||
(error "Bad substring indices"
|
||||
socket flags family addr
|
||||
s start end writer))
|
||||
|
||||
(let loop ((i start))
|
||||
(if (< i end)
|
||||
(loop (+ i (writer socket flags s i end family addr))))))
|
||||
(if (= start end)
|
||||
;; there is such a thing as an empty message
|
||||
(writer socket flags s start end family addr)
|
||||
(let loop ((i start))
|
||||
(if (< i end)
|
||||
(loop (+ i (writer socket flags s i end family addr)))))))
|
||||
|
||||
|
||||
(define (send-message/partial socket s . args)
|
||||
|
|
Loading…
Reference in New Issue