GitHub Sale: sign up for any paid plan this week and pay nothing until January 1, 2009!  [ hide ]

public
Description: Beanstalkd is a fast, distributed, in-memory workqueue service. Its interface is generic, but was designed for use in reducing the latency of page views in high-volume web applications by running most time-consuming tasks asynchronously.
Homepage: http://xph.us/software/beanstalkd/
Clone URL: git://github.com/kr/beanstalkd.git
Click here to lend your support to: beanstalkd and make a donation at www.pledgie.com !
Add copyright notice and license.
kr (author)
Mon Dec 10 17:01:16 -0800 2007
commit  ccb9fdb0ba0b01201f472cc938d6de9d471cd5d9
tree    949777fd447f35af8c07e099e423e8877d332beb
parent  630dcb54399399ad33a3b6d14ac8dcfcb3a44eb4
...
1
2
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3
4
5
...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
0
@@ -1,5 +1,21 @@
0
 /* beanstalk - fast, general-purpose work queue */
0
 
0
+/* Copyright (C) 2007 Keith Rarick and Philotic Inc.
0
+
0
+ * This program is free software: you can redistribute it and/or modify
0
+ * it under the terms of the GNU General Public License as published by
0
+ * the Free Software Foundation, either version 3 of the License, or
0
+ * (at your option) any later version.
0
+
0
+ * This program is distributed in the hope that it will be useful,
0
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
0
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
0
+ * GNU General Public License for more details.
0
+
0
+ * You should have received a copy of the GNU General Public License
0
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
0
+ */
0
+
0
 #include <signal.h>
0
 #include <stdio.h>
0
 #include <stdlib.h>
0
...
1
2
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3
4
5
...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
0
@@ -1,5 +1,21 @@
0
 /* conn.c - network connection state */
0
 
0
+/* Copyright (C) 2007 Keith Rarick and Philotic Inc.
0
+
0
+ * This program is free software: you can redistribute it and/or modify
0
+ * it under the terms of the GNU General Public License as published by
0
+ * the Free Software Foundation, either version 3 of the License, or
0
+ * (at your option) any later version.
0
+
0
+ * This program is distributed in the hope that it will be useful,
0
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
0
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
0
+ * GNU General Public License for more details.
0
+
0
+ * You should have received a copy of the GNU General Public License
0
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
0
+ */
0
+
0
 #include <stdlib.h>
0
 #include <stdio.h>
0
 #include <time.h>
0
...
1
2
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3
4
5
...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
0
@@ -1,5 +1,21 @@
0
 /* conn.h - network connection state */
0
 
0
+/* Copyright (C) 2007 Keith Rarick and Philotic Inc.
0
+
0
+ * This program is free software: you can redistribute it and/or modify
0
+ * it under the terms of the GNU General Public License as published by
0
+ * the Free Software Foundation, either version 3 of the License, or
0
+ * (at your option) any later version.
0
+
0
+ * This program is distributed in the hope that it will be useful,
0
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
0
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
0
+ * GNU General Public License for more details.
0
+
0
+ * You should have received a copy of the GNU General Public License
0
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
0
+ */
0
+
0
 #ifndef conn_h
0
 #define conn_h
0
 
...
1
2
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3
4
5
...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
0
@@ -1,5 +1,21 @@
0
 /* event.h - wrapper for libevent's event.h */
0
 
0
+/* Copyright (C) 2007 Keith Rarick and Philotic Inc.
0
+
0
+ * This program is free software: you can redistribute it and/or modify
0
+ * it under the terms of the GNU General Public License as published by
0
+ * the Free Software Foundation, either version 3 of the License, or
0
+ * (at your option) any later version.
0
+
0
+ * This program is distributed in the hope that it will be useful,
0
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
0
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
0
+ * GNU General Public License for more details.
0
+
0
+ * You should have received a copy of the GNU General Public License
0
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
0
+ */
0
+
0
 #ifndef event_h
0
 #define event_h
0
 
0
...
1
2
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3
4
5
...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
0
@@ -1,5 +1,21 @@
0
 /* job.c - a job in the queue */
0
 
0
+/* Copyright (C) 2007 Keith Rarick and Philotic Inc.
0
+
0
+ * This program is free software: you can redistribute it and/or modify
0
+ * it under the terms of the GNU General Public License as published by
0
+ * the Free Software Foundation, either version 3 of the License, or
0
+ * (at your option) any later version.
0
+
0
+ * This program is distributed in the hope that it will be useful,
0
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
0
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
0
+ * GNU General Public License for more details.
0
+
0
+ * You should have received a copy of the GNU General Public License
0
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
0
+ */
0
+
0
 #include <stdlib.h>
0
 #include <string.h>
0
 
0
...
1
2
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3
4
5
...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
0
@@ -1,5 +1,21 @@
0
 /* job.h - a job in the queue */
0
 
0
+/* Copyright (C) 2007 Keith Rarick and Philotic Inc.
0
+
0
+ * This program is free software: you can redistribute it and/or modify
0
+ * it under the terms of the GNU General Public License as published by
0
+ * the Free Software Foundation, either version 3 of the License, or
0
+ * (at your option) any later version.
0
+
0
+ * This program is distributed in the hope that it will be useful,
0
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
0
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
0
+ * GNU General Public License for more details.
0
+
0
+ * You should have received a copy of the GNU General Public License
0
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
0
+ */
0
+
0
 #ifndef job_h
0
 #define job_h
0
 
0
...
1
2
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3
4
5
...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
0
@@ -1,5 +1,21 @@
0
 /* net.c - stupid boilerplate shit that I shouldn't have to write */
0
 
0
+/* Copyright (C) 2007 Keith Rarick and Philotic Inc.
0
+
0
+ * This program is free software: you can redistribute it and/or modify
0
+ * it under the terms of the GNU General Public License as published by
0
+ * the Free Software Foundation, either version 3 of the License, or
0
+ * (at your option) any later version.
0
+
0
+ * This program is distributed in the hope that it will be useful,
0
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
0
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
0
+ * GNU General Public License for more details.
0
+
0
+ * You should have received a copy of the GNU General Public License
0
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
0
+ */
0
+
0
 #include <stdio.h>
0
 #include <errno.h>
0
 
0
...
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
0
@@ -1,3 +1,19 @@
0
+/* Copyright (C) 2007 Keith Rarick and Philotic Inc.
0
+
0
+ * This program is free software: you can redistribute it and/or modify and Philotic Inc.
0
+ * it under the terms of the GNU General Public License as published by
0
+ * the Free Software Foundation, either version 3 of the License, or
0
+ * (at your option) any later version.
0
+
0
+ * This program is distributed in the hope that it will be useful,
0
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
0
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
0
+ * GNU General Public License for more details.
0
+
0
+ * You should have received a copy of the GNU General Public License
0
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
0
+ */
0
+
0
 #ifndef net_h
0
 #define net_h
0
 
0
...
1
2
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3
4
5
...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
0
@@ -1,5 +1,21 @@
0
 /* pq.c - priority queue */
0
 
0
+/* Copyright (C) 2007 Keith Rarick and Philotic Inc.
0
+
0
+ * This program is free software: you can redistribute it and/or modify
0
+ * it under the terms of the GNU General Public License as published by
0
+ * the Free Software Foundation, either version 3 of the License, or
0
+ * (at your option) any later version.
0
+
0
+ * This program is distributed in the hope that it will be useful,
0
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
0
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
0
+ * GNU General Public License for more details.
0
+
0
+ * You should have received a copy of the GNU General Public License
0
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
0
+ */
0
+
0
 #include <stdlib.h>
0
 #include <stdio.h>
0
 
0
...
1
2
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3
4
5
...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
0
@@ -1,5 +1,21 @@
0
 /* pq.h - priority queue header */
0
 
0
+/* Copyright (C) 2007 Keith Rarick and Philotic Inc.
0
+
0
+ * This program is free software: you can redistribute it and/or modify
0
+ * it under the terms of the GNU General Public License as published by
0
+ * the Free Software Foundation, either version 3 of the License, or
0
+ * (at your option) any later version.
0
+
0
+ * This program is distributed in the hope that it will be useful,
0
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
0
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
0
+ * GNU General Public License for more details.
0
+
0
+ * You should have received a copy of the GNU General Public License
0
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
0
+ */
0
+
0
 #ifndef q_h
0
 #define q_h
0
 
0
...
1
2
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3
4
5
...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
0
@@ -1,5 +1,21 @@
0
 /* prot.c - protocol implementation */
0
 
0
+/* Copyright (C) 2007 Keith Rarick and Philotic Inc.
0
+
0
+ * This program is free software: you can redistribute it and/or modify
0
+ * it under the terms of the GNU General Public License as published by
0
+ * the Free Software Foundation, either version 3 of the License, or
0
+ * (at your option) any later version.
0
+
0
+ * This program is distributed in the hope that it will be useful,
0
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
0
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
0
+ * GNU General Public License for more details.
0
+
0
+ * You should have received a copy of the GNU General Public License
0
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
0
+ */
0
+
0
 #include <stdlib.h>
0
 #include <stdio.h>
0
 #include <string.h>
0
...
1
2
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3
4
5
...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
0
@@ -1,5 +1,21 @@
0
 /* prot.h - protocol implementation header */
0
 
0
+/* Copyright (C) 2007 Keith Rarick and Philotic Inc.
0
+
0
+ * This program is free software: you can redistribute it and/or modify
0
+ * it under the terms of the GNU General Public License as published by
0
+ * the Free Software Foundation, either version 3 of the License, or
0
+ * (at your option) any later version.
0
+
0
+ * This program is distributed in the hope that it will be useful,
0
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
0
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
0
+ * GNU General Public License for more details.
0
+
0
+ * You should have received a copy of the GNU General Public License
0
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
0
+ */
0
+
0
 #ifndef prot_h
0
 #define prot_h
0
 
...
1
2
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3
4
5
...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
0
@@ -1,5 +1,21 @@
0
 /* reserve.c - job reservations */
0
 
0
+/* Copyright (C) 2007 Keith Rarick and Philotic Inc.
0
+
0
+ * This program is free software: you can redistribute it and/or modify
0
+ * it under the terms of the GNU General Public License as published by
0
+ * the Free Software Foundation, either version 3 of the License, or
0
+ * (at your option) any later version.
0
+
0
+ * This program is distributed in the hope that it will be useful,
0
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
0
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
0
+ * GNU General Public License for more details.
0
+
0
+ * You should have received a copy of the GNU General Public License
0
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
0
+ */
0
+
0
 #include "job.h"
0
 #include "prot.h"
0
 #include "reserve.h"
...
1
2
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3
4
5
...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
0
@@ -1,5 +1,21 @@
0
 /* reserve.h - job reservations header */
0
 
0
+/* Copyright (C) 2007 Keith Rarick and Philotic Inc.
0
+
0
+ * This program is free software: you can redistribute it and/or modify
0
+ * it under the terms of the GNU General Public License as published by
0
+ * the Free Software Foundation, either version 3 of the License, or
0
+ * (at your option) any later version.
0
+
0
+ * This program is distributed in the hope that it will be useful,
0
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
0
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
0
+ * GNU General Public License for more details.
0
+
0
+ * You should have received a copy of the GNU General Public License
0
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
0
+ */
0
+
0
 #ifndef reserve_h
0
 #define reserve_H
0
 
0
...
1
2
3
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
4
5
6
...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
0
@@ -1,6 +1,22 @@
0
 #include <stdio.h>
0
 #include <unistd.h>
0
 
0
+/* Copyright (C) 2007 Keith Rarick and Philotic Inc.
0
+
0
+ * This program is free software: you can redistribute it and/or modify
0
+ * it under the terms of the GNU General Public License as published by
0
+ * the Free Software Foundation, either version 3 of the License, or
0
+ * (at your option) any later version.
0
+
0
+ * This program is distributed in the hope that it will be useful,
0
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
0
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
0
+ * GNU General Public License for more details.
0
+
0
+ * You should have received a copy of the GNU General Public License
0
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
0
+ */
0
+
0
 void
0
 v()
0
 {
0
...
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
0
@@ -1,3 +1,19 @@
0
+/* Copyright (C) 2007 Keith Rarick and Philotic Inc.
0
+
0
+ * This program is free software: you can redistribute it and/or modify and Philotic Inc.
0
+ * it under the terms of the GNU General Public License as published by
0
+ * the Free Software Foundation, either version 3 of the License, or
0
+ * (at your option) any later version.
0
+
0
+ * This program is distributed in the hope that it will be useful,
0
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
0
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
0
+ * GNU General Public License for more details.
0
+
0
+ * You should have received a copy of the GNU General Public License
0
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
0
+ */
0
+
0
 #ifndef util_h
0
 #define util_h
0
 
...
1
2
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3
4
5
...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
0
@@ -1,5 +1,21 @@
0
 /* version.h - beanstalkd version header */
0
 
0
+/* Copyright (C) 2007 Keith Rarick and Philotic Inc.
0
+
0
+ * This program is free software: you can redistribute it and/or modify
0
+ * it under the terms of the GNU General Public License as published by
0
+ * the Free Software Foundation, either version 3 of the License, or
0
+ * (at your option) any later version.
0
+
0
+ * This program is distributed in the hope that it will be useful,
0
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
0
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
0
+ * GNU General Public License for more details.
0
+
0
+ * You should have received a copy of the GNU General Public License
0
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
0
+ */
0
+
0
 /* This file will be replaced by pkg.sh */
0
 
0
 #define VERSION "dev"

Comments

    No one has commented yet.