summaryrefslogtreecommitdiffstats
path: root/src/plugins/locate/python
diff options
context:
space:
mode:
authorGreg Hudson <ghudson@mit.edu>2014-03-26 13:21:45 -0400
committerGreg Hudson <ghudson@mit.edu>2014-04-02 21:30:45 -0400
commit346883c48f1b9e09b1af2cf73e3b96ee8f934072 (patch)
tree0a78e93eda2cd22fc29d5862f87bd01b0deb4109 /src/plugins/locate/python
parent613c62d689c31a325d51be88657dedd17af3cf81 (diff)
downloadkrb5-346883c48f1b9e09b1af2cf73e3b96ee8f934072.tar.gz
krb5-346883c48f1b9e09b1af2cf73e3b96ee8f934072.tar.xz
krb5-346883c48f1b9e09b1af2cf73e3b96ee8f934072.zip
Refactor cm functions in sendto_kdc.c
Move get_curtime_ms and the cm functions near the top of the file right after structure definitions. Except for cm_select_or_poll, define each cm function separately for poll and for select, since the implementations don't share much in common. Instead of cm_unset_write, define cm_read and cm_write functions to put an fd in read-only or write-only state. Remove the ssflags argument from cm_add_fd and just expect the caller to make a subsequent call to cm_read or cm_write. Always select for exceptions when using select. (Polling for exceptions is implicit with poll). With these changes, we no longer select/poll for reading on a TCP connection until we are done writing to it. So in service_tcp_fd, remove the check for unexpected read events.
Diffstat (limited to 'src/plugins/locate/python')
0 files changed, 0 insertions, 0 deletions