diff --git a/src/lua/init.m b/src/lua/init.m
index c2bb9b679518eb5844f87ffdbec584a0e9744215..b68df7f3222353a571a5fdf42568fe4284929bfc 100644
--- a/src/lua/init.m
+++ b/src/lua/init.m
@@ -1596,6 +1596,4 @@ tarantool_lua_load_init_script(struct lua_State *L)
 	 * allowed.
 	*/
 	tarantool_lua_sandbox(tarantool_L);
-
 }
-
diff --git a/src/lua/lua_socket.m b/src/lua/lua_socket.m
index 40518cbd6ac59bc0cf121299f670c3e23e41ce30..8acba42ae6ae0a2ca4730baf99d74939c63fe2a2 100644
--- a/src/lua/lua_socket.m
+++ b/src/lua/lua_socket.m
@@ -916,5 +916,14 @@ tarantool_lua_socket_init(struct lua_State *L)
 	};
 	tarantool_lua_register_type(L, socketlib_name, lbox_socket_meta);
 	luaL_register(L, socketlib_name, socketlib);
+	lua_pushstring(L, "SHUT_RD");
+	lua_pushnumber(L, SHUT_RD);
+	lua_settable(L, -3);
+	lua_pushstring(L, "SHUT_WR");
+	lua_pushnumber(L, SHUT_WR);
+	lua_settable(L, -3);
+	lua_pushstring(L, "SHUT_RDWR");
+	lua_pushnumber(L, SHUT_RDWR);
+	lua_settable(L, -3);
 	lua_pop(L, 1);
 }