MOON
Server: Apache
System: Linux server1.studioinfinity.com.br 2.6.32-954.3.5.lve1.4.90.el6.x86_64 #1 SMP Tue Feb 21 12:26:30 UTC 2023 x86_64
User: artinside (517)
PHP: 7.4.33
Disabled: exec,passthru,shell_exec,system
Upload Files
File: //usr/share/zsh/4.3.11/functions/tcp_fd_handler
local line fd=$1 sess=${tcp_by_fd[$1]}
local TCP_HANDLER_ACTIVE=1
if [[ -n $sess ]]
then
  local TCP_INVALIDATE_ZLE
  if (( $# > 2 )); then
    zle -I
    ## debugging only
    # print "Flags on the play:" ${argv[3,-1]}
  else
    TCP_INVALIDATE_ZLE=1
  fi
  if ! tcp_read -d -u $fd; then
    if (( ${+functions[tcp_on_awol]} )); then
      tcp_on_awol $sess $fd
      (( $? == 100 )) || return $?
    fi
    [[ -n $TCP_INVALIDATE_ZLE ]] && zle -I
    print "[TCP fd $fd (session $sess) gone awol; removing from poll list]" >& 2
    zle -F $fd
    return 1
  fi
  return 0
else
  zle -I
  # Handle fds not in the TCP set similarly.
  # This does the drain thing, to try and get as much data out as possible.
  if ! read -u $fd line; then
    print "[Reading on $fd failed; removing from poll list]" >& 2
    zle -F $fd
    return 1
  fi
  line="fd$fd:$line"
  local newline
  while read -u $fd -t newline; do
    line="${line}
fd$fd:$newline"
  done
fi
print -r - $line