Sleep before sending each line to prevent excess flood.
This commit is contained in:
parent
5c8daf6f1c
commit
9883f7e402
1 changed files with 3 additions and 1 deletions
|
@ -181,6 +181,8 @@ void CHANNEL__SEND(char *cobol_buffer, char *state)
|
||||||
#ifdef DEBUG
|
#ifdef DEBUG
|
||||||
printf("Sending: %s\n", msg_buf);
|
printf("Sending: %s\n", msg_buf);
|
||||||
#endif
|
#endif
|
||||||
|
/* Let's quit getting WOPO kicked off Freenode */
|
||||||
|
usleep(200000);
|
||||||
while(sent < total) {
|
while(sent < total) {
|
||||||
int status = send(sockfd, msg_buf + sent, total - sent, 0);
|
int status = send(sockfd, msg_buf + sent, total - sent, 0);
|
||||||
if(status == -1) {
|
if(status == -1) {
|
||||||
|
|
Loading…
Reference in a new issue