Age | Commit message (Collapse) | Author | |
---|---|---|---|
2017-01-09 | UINT_MAX requires limits.h | Sunil Nimmagadda | |
2014-09-05 | The sockaddr_storage returned by accept(2) belongs to session and | Sunil Nimmagadda | |
not the listener. Move it to a place where it belongs: struct session. | |||
2014-09-05 | Stop leaking sock descriptors in error path. | Sunil Nimmagadda | |
2014-09-04 | Whitespace. | Sunil Nimmagadda | |
2014-08-31 | Merge refactor branch. | Sunil Nimmagadda | |
2014-08-31 | Disengaging imsgev is tricky. First imsgev_clear as we know there | Sunil Nimmagadda | |
isn't anything left to be written. Signal imsgev termination by setting iev->terminate = 1(Mind that we are setting it from with the callback). As imsgev would again callback dispatch with IMSGEV_DONE, we cannot free imsgev yet. So iev_maildrop need to exist beyond lifetime of session until IMSGEV_DONE. Allocating it seperately from session. imsgev_close is avoided as it schedules another EV_WRITE which is not needed in our case. This fixes a crash observed consistently with a little perl script to simulate concurrent sessions. Thanks MALLOC_OPTIONS='SFG<<' | |||
2014-08-28 | Shorten. | Sunil Nimmagadda | |
2014-08-28 | space nit. | Sunil Nimmagadda | |
2014-08-27 | No use of iev->data, set it to NULL. | Sunil Nimmagadda | |
2014-08-27 | Give session a chance to init its imsgev. Let session initiate the | Sunil Nimmagadda | |
process of MAILDROP_INIT. Maildrop now sets up itself and waits for MAILDROP_INIT from session. This would now eliminate the doubt in the earlier setup when priv process forks and the child gets cpu slice first before parent which sends MAILDROP_INIT to an uninitialized imsgev. | |||
2014-08-27 | mtype, mpath are accessible to maildrop, simplify setup parameters. | Sunil Nimmagadda | |
2014-08-27 | Rename to differentiate setup and init operations. | Sunil Nimmagadda | |
2014-08-27 | Bounds check array index. Fixes a crash when len == 1. | Sunil Nimmagadda | |
2014-08-23 | First clear io then iobuf. | Sunil Nimmagadda | |
2014-08-23 | Latest changes from upstream with commit message... | Sunil Nimmagadda | |
When the three possible return values are -1, 0, and 1, != 1 is the same as <= 0. And the latter is the normal idiom so use that. ok claudio@ henning@ | |||
2014-08-20 | Prepend session id to the log message. | Sunil Nimmagadda | |
2014-05-29 | knf and whitespace fixes. | Sunil Nimmagadda | |
2014-05-28 | Fix a crash during concurrent sessions TIMEOUT reported by James | Sunil Nimmagadda | |
Turner (#5). imsgev_close schedules(event_add) iev and the event struct is free-ed before the event is dispatched. Include string.h after recent libressl changes. | |||
2014-05-02 | Pull in latest changes for iobuf/ioev from smtpd. | Sunil Nimmagadda | |
2014-04-19 | This cannot truncate unless new states are added. | Sunil Nimmagadda | |
2014-04-19 | Equal sized buffer copy, no truncation happens. | Sunil Nimmagadda | |
2014-04-19 | args are checked for size in parse function. Cast to void as no truncation ↵ | Sunil Nimmagadda | |
check required here. | |||
2014-04-19 | hash is a fixed length string. Copying is always done to same length | Sunil Nimmagadda | |
buffer. Explicitly cast to void for clarity. | |||
2014-04-12 | Update README.md | Sunil Nimmagadda | |
2014-04-11 | Mark uidl correctly in list_res for the terminal. Fixes UIDL command | Sunil Nimmagadda | |
on an empty maildrop. | |||
2014-04-11 | Remove redundant sock member in session. io already holds the sock for each ↵ | Sunil Nimmagadda | |
session. | |||
2014-04-10 | pull in latest master. | Sunil Nimmagadda | |
2014-04-10 | Kill pop3_main return value as we now waitpid on WAIT_ANY. | Sunil Nimmagadda | |
2014-04-10 | Since we now waitpid on WAIT_ANY, pop3_main needed return pid. | Sunil Nimmagadda | |
2014-04-10 | Merge pull request #3 from jturner/killzombies | Sunil Nimmagadda | |
Make sure zombie processes are not left over | |||
2014-04-10 | Simplify maildrop path handling. Regardless of the order of options path is ↵ | Sunil Nimmagadda | |
now correctly handled. | |||
2014-04-09 | Make sure zombie processes are left over | James Turner | |
2014-04-07 | Fix clang warnings. offset is always long. | Sunil Nimmagadda | |
2014-04-02 | Return correct nlines for RETR in maildir handling. | Sunil Nimmagadda | |
2014-04-02 | Use correct format of listing. | Sunil Nimmagadda | |
2014-04-02 | Move it closer to list. | Sunil Nimmagadda | |
2014-04-01 | Merge branch 'refactor' | Sunil Nimmagadda | |
2014-04-01 | merge from cvs. | Sunil Nimmagadda | |
2014-04-01 | Import. | Sunil Nimmagadda | |
2014-04-01 | Properly NUL terminate expanded path by memsetting it. | Sunil Nimmagadda | |
2014-04-01 | Simplify list_all handling. Send an imsg for each msg instead of | Sunil Nimmagadda | |
consolidating into one imsg. We are no longer limited by MAX_IMSGSIZE. End of list is signalled by sending an imsg with hash as "" or sz as 0. | |||
2014-03-27 | Create README.md | Sunil Nimmagadda | |
2014-03-27 | Import pop3d. | Sunil Nimmagadda | |