I deleted my previous question because I didn't have enough info. Now I 
might, but it's turned into something very specific.

I am running into a problem where checking for EOF on a network connection 
is causing a ~10 - 15-second delay. That is,

function eof(s::Session)

info("$(now()) eof: starting - nba")
nba = nb_available(s)
info("$(now()) eof: nba = $nba, checking eofr")
eofr = eof(s.read)
info("$(now()) eof: eofr = $eofr, done")
return (nba == 0) && eofr
end


 cpio = checkpending(io)
 info("$(now()) readtobuf: checkpending = $cpio")
 eofio = eof(io)
 info("$(now()) readtobuf: eofio = $eofio")


INFO: 2015-02-17T08:09:10 readtobuf: checkpending = false
INFO: 2015-02-17T08:09:10 eof: starting - nba
INFO: 2015-02-17T08:09:10 eof: nba = 0, checking eofr
INFO: 2015-02-17T08:09:20 eof: eofr = false, done        <----- 10 second 
delay in checking eof(s.read)
INFO: 2015-02-17T08:09:20 readtobuf: eofio = false

Is it normal to have a block on this eof check?

s.read is a connect("github.com", 443), if that matters.

Reply via email to