Revision 1.8 |
Revision 1.10 |
Line 10 |
Line 10 |
#include "schedule.h" #include "config.h"  
|
#include "schedule.h" #include "config.h"  
|
void *depot(void *_arg)
|
void *depot(void *_arg) {
|
{
|
|
int max = (int)_arg; int top = 0; pth_msgport_t mp;
|
int max = (int)_arg; int top = 0; pth_msgport_t mp;
|
Line 117 |
Line 116 |
reqnode* rn = (reqnode*)msg; /* Send back 'unavailable' message and close connection */
|
reqnode* rn = (reqnode*)msg; /* Send back 'unavailable' message and close connection */
|
response_503(msg->fd);
COW_CLOSE(msg->fd);
|
#ifdef USE_TCPCORK
STATIC_RESPONSE(msg->fd, 503);
|
|
cow_close_socket(msg->fd);
#else
STATIC_RESPONSE(msg->buf, 503);
cow_close_socket(msg->buf);
#endif
|
--cow_cur_conn; /* Return the message structure to the pmsg pool */
|
--cow_cur_conn; /* Return the message structure to the pmsg pool */
|
Line 171 |
Line 175 |
return (void *)NULL; }
|
return (void *)NULL; }
|